Fast Generation of Discrete Random Variables

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,...

Full description

Bibliographic Details
Main Authors: George Marsaglia, Wai Wan Tsang, Jingbo Wang
Format: Article
Language:English
Published: Foundation for Open Access Statistics 2004-07-01
Series:Journal of Statistical Software
Online Access:http://www.jstatsoft.org/index.php/jss/article/view/1408