Affiliation:
1. The Florida State Univ., Tallahassee
2. The Univ. of Hong Kong
Abstract
We suggest an interesting and fast method for generating normal, exponential, t, von Mises, and certain other important random variables used in Monte Carlo studies. The right half of a symmetric density is cut into pieces, then, using simple area-preserving transformations, reassembled into a rectangle from which the x-coordinate—or a linear function of the x-coordinate—of a random point provides the required variate. To illustrate the speed and simplicity of the Monty Python method, we provide a small C program, self-contained, for rapid generation of normal (Gaussian) variables. It is self-contained in the sense that required uniform variates are generated in-line, as pairs of 16-bit integers by means of the remarkable new multiply-with-carry method.
Publisher
Association for Computing Machinery (ACM)
Subject
Applied Mathematics,Software
Reference6 articles.
1. DEVROYE L. 1986. Non-Uniform Random Variate Generation Springer-Verlag New York. DEVROYE L. 1986. Non-Uniform Random Variate Generation Springer-Verlag New York.
2. The exact-approximation method for generating random variables;MARSAGLIA G.;J. Am. Stat. Assoc.,1984
3. MARSAGLIA G. 1996. The Marsaglia Random Number CDROM with the DIEHARD Battery of Tests of Randomness. Department of Statistics Florida State University. Available by ftp through the Department of Computer Science Univ. of Hong Kong: http://www.cs.hku.hk/ ftp.html MARSAGLIA G. 1996. The Marsaglia Random Number CDROM with the DIEHARD Battery of Tests of Randomness. Department of Statistics Florida State University. Available by ftp through the Department of Computer Science Univ. of Hong Kong: http://www.cs.hku.hk/ ftp.html
4. A fast, easily implemented method for sampling from decreasing or symmetric unimodal density functions;MARSAGLIA G.;SIAM J. Sci. Stat. Comput.,1984
5. Generating gamma variates
Cited by
22 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献