Some Difficult-to-pass Tests of Randomness
George Marsaglia and
Wai Wan Tsang
Journal of Statistical Software, 2002, vol. 007, issue i03
Abstract:
We describe three tests of randomness-- tests that many random number generators fail. In particular, all congruential generators-- even those based on a prime modulus-- fail at least one of the tests, as do many simple generators, such as shift register and lagged Fibonacci. On the other hand, generators that pass the three tests seem to pass all the tests in the Diehard Battery of Tests. Note that these tests concern the randomness of a generator's output as a sequence of independent, uniform 32-bit integers. For uses where the output is converted to uniform variates in [0,1), potential flaws of the output as integers will seldom cause problems after the conversion. Most generators seem to be adequate for producing a set of uniform reals in [0,1), but several important applications, notably in cryptography and number theory-- for example, establishing probable primes, complexity of factoring algorithms, random partitions of large integers-- may require satisfactory performance on the kinds of tests we describe here.
Date: 2002-01-27
References: View complete reference list from CitEc
Citations: View citations in EconPapers (9)
Downloads: (external link)
https://www.jstatsoft.org/index.php/jss/article/view/v007i03/tuftests.pdf
https://www.jstatsoft.org/index.php/jss/article/do ... 07i03/tuftests.c.zip
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:jss:jstsof:v:007:i03
DOI: 10.18637/jss.v007.i03
Access Statistics for this article
Journal of Statistical Software is currently edited by Bettina Grün, Edzer Pebesma and Achim Zeileis
More articles in Journal of Statistical Software from Foundation for Open Access Statistics
Bibliographic data for series maintained by Christopher F. Baum ().