The DOI matches its Crossref record.
The Ziggurat Method for Generating Random Variables
Open accessAbstract
We provide a new version of our ziggurat method for generating a random variable from a given decreasing density. It is faster and simpler than the original, and will produce, for example, normal or exponential variates at the rate of 15 million per second with a C version on a 400MHz PC. It uses two tables, integers ki, and reals wi. Some 99% of the time, the required x is produced by: Generate a random 32-bit integer j and let i be the index formed from the rightmost 8 bits of j. If j < k, return x = j x wi. We illustrate with C code that provides for inline generation of both normal and exponential variables, with a short procedure for settting up the necessary tables.
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cited by
MatConvNet: Convolutional Neural Networks for MATLAB
Vedaldi, A., & Lenc, K. (2015) · Proceedings of the 23rd ACM international conference on Multimedia · doi:10.1145/2733373.2807412 · Cited by 2,444
An Introduction to Computational Stochastic PDEs
Lord, G. J., Powell, C. E., & Shardlow, T. (2014) · Cambridge University Press eBooks · doi:10.1017/cbo9781139017329 · Cited by 537
Carter, T., Guo, B., Turner, D., Morres, I., Khalil, E., Brighton, E., Armstrong, M., & Callaghan, P. (2015) · BMC Psychiatry · doi:10.1186/s12888-015-0638-z · Cited by 93
A 3 $\mu$W CMOS True Random Number Generator With Adaptive Floating-Gate Offset Cancellation
Holleman, J., Bridges, S., Otis, B. P., & Diorio, C. (2008) · IEEE Journal of Solid-State Circuits · doi:10.1109/jssc.2008.920327 · Cited by 63
An Instruction Set Architecture for Machine Learning
Chen, Y., Lan, H., Du, Z., Liu, S., Tao, J., Han, D., Luo, T., Guo, Q., Li, L., Xie, Y., et al. (2018) · ACM Transactions on Computer Systems · doi:10.1145/3331469 · Cited by 14
Metadata
- Authors
- Marsaglia, G., & Tsang, W. W.
- Venue
- Journal of Statistical Software
- Publisher
- Foundation for Open Access Statistic
- Published
- 2000
- Volume
- 5
- Issue
- 8
- ISSN
- 1548-7660 (ISSN-L)
- OpenAlex
- W2117106078
- Cited by
- 568
- References
- 0
- FWCI
- 1.50
- Type
- journal article
- Language
- en
- Open access
- diamond
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: The Ziggurat Method for Generating Random Variables. https://app.cochat.ai/papers/10.18637/jss.v005.i08
- The paper
- Marsaglia, G., & Tsang, W. W. (2000). The Ziggurat Method for Generating Random Variables. Journal of Statistical Software. https://doi.org/10.18637/jss.v005.i08
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.