Paper record
W127414535Correction: Algorithm AS 183: An Efficient and Portable Pseudo-Random Number Generator
Brian A. Wichmann, I. D. Hill
- Year
- 1984
- Venue
- Journal of the Royal Statistical Society Series C (Applied Statistics)
- References
- 3
- Cited by
- 269
Details and counts from OpenAlex.
Abstract
Schrage (1979) has pointed out the advantages of pseudo-random generators that can be written in a high-level language and produce the same results on any machine. The generator that he presents, however, has the disadvantages: (1) like all simple multiplicative congruential generators, it does not work well at the extremes of the distribution-for any number produced that is less than 59499 x 10the next number will simply be 16807 times as much, and similarly at the top end; (2) on a 16-bit machine it has to use double precision arithmetic instead of integer arithmetic, which makes it very slow, and also uncertain that rounding errors could not occur. Our algorithm does not have these difficulties. We claim that it is reasonably short, reasonably fast, machine-independent, easily programmed in any language, and statistically sound. It has a cycle length exceeding 2 78 x 1013 so that even using 1000 random numbers per second continuously, the sequence would not repeat for over 880 years. Consequently we have tested only small parts of it, consisting of many millions of numbers nevertheless. However, there are theoretical grounds for expecting good results, and the results of the tests we have made have been so satisfactory, that we are prepared to extrapolate our experience and infer that the sequence is satisfactory throughout. The algorithm produces numbers rectangularly distributed between 0 and 1, excluding the end points.