@article{JSSv011i03, title={Fast Generation of Discrete Random Variables}, volume={11}, url={https://www.jstatsoft.org/index.php/jss/article/view/v011i03}, doi={10.18637/jss.v011.i03}, 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.}, number={3}, journal={Journal of Statistical Software}, author={Marsaglia, George and Tsang, Wai Wan and Wang, Jingbo}, year={2004}, pages={1–11} }