fixed issue with script hanging if no space to randomize
Merge pull request #1 from noosxe/master

fixed issue with script hanging if no space to randomize