improves pseudorandom number generator