5tbl swMATH ID: 26231 Software Authors: George Marsaglia; Wai Wan Tsang; Jingbo Wang Description: 5tbl.c, TplusSQ.c: 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, as well as specific procedures for three of the most important discrete distributions: Poisson, binomial and hypergeometric. Homepage: https://www.jstatsoft.org/v011/i03 Keywords: C code; random numbers; discrete variates; Poisson; binomial; hypergeometric; Journal of Statistical Software Related Software: R; Apache Spark; MKL; GSL; MersenneTwister; Diehard; DOULION; Ziggurat Cited in: 5 Publications Standard Articles 1 Publication describing the Software Year all top 5 Cited by 9 Authors 1 Aletti, Giacomo 1 Deon, Aleksei F. 1 Eden, Talya 1 Hübschle-Schneider, Lorenz 1 Menyaev, Yulian A. 1 Ron, Dana 1 Sanders, Peter 1 Seshadhri, Comandur 1 Shmerling, Efraim Cited in 3 Serials 2 Statistics & Probability Letters 1 SIAM Journal on Computing 1 Algorithms Cited in 5 Fields 3 Numerical analysis (65-XX) 3 Computer science (68-XX) 1 Combinatorics (05-XX) 1 Probability theory and stochastic processes (60-XX) 1 Statistics (62-XX) Citations by Year