Fixes ranomisation problem
Merge pull request #21 from rogerthomas84/random-fix

Fixes ranomisation problem