Fast Generation of Discrete Random Variables
George Marsaglia, Wai Wan Tsang, Jingbo Wang
Journal of Statistical Software · 2004
doi:10.18637/jss.v011.i03 (opens in a new tab)
We email you when a new notice or a question about this paper appears.
Abstract
We describe two methods and provide C programs for generating discrete random variables with functions that are simple and fast, averaging ten times as fast as published methods and more than five times as fast as the fastest of those. We provide general procedures for implementing the two methods, as well as specific procedures for three of the most important discrete distributions: Poisson, binomial and hypergeometric.
Abstract licence: CC BY
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.