|We do the math so you don't have to!
Random Number Generation
Here is information on pseudo and quasi random number generation with implementations in several languages. And a tutorial on how to generate nonuniformly distributed random numbers.
Zierler, N. and J. Brillhart,1969; On primitive trinomials (mod 2) II, Information and Control, Vol 14 No 6 (Jun), pp. 566 - 569
Warning 1: R250 requires the use of a separate random number generator in order to intialize itself. It can fail spectacularly if the initialization is poorly done. I have had reliable results using the Park and Miller "minimal standard" generator for the initializer. The above implementations use this initializer (which is included in the source code). Warning 2: R250 is not crypotographically secure (it easily cloned from its output). This is not an issue when doing physics modelling but it certainly is if your random numbers are part of a cryptographic application. Other generators:
Whats all the fuss about ? Why can't I just use the PRNG that came with my compiler ? See Also: