Fixed PRNG Bug