Fix random number generation.
Merge pull request #1 from jeamland/master

Fix random number generation. Thanks, Benno!