Published by the Foundation for Open Access Statistics
Editors-in-chief: Bettina Grün, Torsten Hothorn, Edzer Pebesma, Achim Zeileis    ISSN 1548-7660; CODEN JSSOBK
Some Difficult-to-pass Tests of Randomness | Marsaglia | Journal of Statistical Software
Authors: George Marsaglia, Wai Wan Tsang
Title: Some Difficult-to-pass Tests of Randomness
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.

Page views:: 14764. Submitted: 2001-11-30. Published: 2002-01-27.
Paper: Some Difficult-to-pass Tests of Randomness     Download PDF (Downloads: 15514)
Supplements: tuftests.c: GCD, BDAY and GORILLA C code Download (Downloads: 1563; 3KB)

DOI: 10.18637/jss.v007.i03

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.