Refactor PseudoRNG