fixed unit test for prng.integer()

some code cleanup
Merge pull request #77 from systemstart/master

fixed prng unit test