|Authors:||George Marsaglia, Wai Wan Tsang, Jingbo Wang|
|Title:||Fast Generation of Discrete Random Variables|
|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.|
Page views:: 15800. Submitted: 2004-06-05. Published: 2004-07-12.
Fast Generation of Discrete Random Variables
This work is licensed under the licenses
Paper: Creative Commons Attribution 3.0 Unported License
Code: GNU General Public License (at least one of version 2 or version 3) or a GPL-compatible license.