Added PRNG support.