simplify and speed up by using the same prng instead of creating a new one