using prng module to encapsulate randomness