fixed unit test for prng.integer()

some code cleanup