Pseudorandom number generator classes and support code