TestU01: A C library for empirical testing of random number generators
The DOI matches its Crossref record; 129 of the 130 references it cites were found in a registry or an index.
Abstract
We introduce TestU01 , a software library implemented in the ANSI C language, and offering a collection of utilities for the empirical statistical testing of uniform random number generators (RNGs). It provides general implementations of the classical statistical tests for RNGs, as well as several others tests proposed in the literature, and some original ones. Predefined tests suites for sequences of uniform random numbers over the interval (0, 1) and for bit sequences are available. Tools are also offered to perform systematic studies of the interaction between a specific test and the structure of the point sets produced by a given family of RNGs. That is, for a given kind of test and a given class of RNGs, to determine how large should be the sample size of the test, as a function of the generator's period length, before the generator starts to fail the test systematically. Finally, the library provides various types of generators implemented in generic form, as well as many specific generators proposed in the literature or found in widely used software. The tests can be applied to instances of the generators predefined in the library, or to user-defined generators, or to streams of random numbers produced by any kind of device or stored in files. Besides introducing TestU01 , the article provides a survey and a classification of statistical tests for RNGs. It also applies batteries of tests to a long list of widely used RNGs.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“However, these traditional methods have been reported to be inadequate, especially for high-dimensional data and for analyzing complex dependencies”
From A novel deep learning-based statistical randomness evaluation test methodology for cryptographic applications (2025) · cites this paper as L'Ecuyer and Simard 2007
In the citing paper
“NIST SP-800.22 statistical test suite [90] and Die-hard test suite [91] and Test U01 [92] and AIS31 [93] are most common statistical test suites to evaluate their RNGs by researchers.”
From True Random Number Generators Using Electrical Noise (2019) · cites this paper as [92]
In the citing paper
“The Philox and Threefry generators are shown to produce at least 2 64 independent streams of random numbers, with a period of 2 128 or more, and pass BigCrush [36] statistical tests.”
From Bandwidth-Optimal Random Shuffling for GPUs (2022) · cites this paper as [36]
Citations
Cites
The Art of Computer Programming
Knuth, D. E. (1968) · Cited by 16,320
Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. (1994) · Cited by 15,411
Mersenne twister: a 623-dimensionally equidistributed uniform pseudo-random number generator
Matsumoto, M., & Nishimura, T. (1998) · ACM Transactions on Modeling and Computer Simulation · doi:10.1145/272991.272995 · Cited by 5,780
The Art of Computer Programming. Volume 2: Seminumerical Algorithms.
Taussky, O., & Knuth, D. E. (1970) · The American Mathematical Monthly · doi:10.2307/2317055 · Cited by 3,822
Bassham, L. E., Rukhin, A. L., Soto, J., Nechvatal, J. R., Smid, M. E., Barker, E. B., Leigh, S. D., Levenson, M., Vangel, M., Banks, D. L., et al. (2010) · NIST Special Publication 800-22 Revision 1a · doi:10.6028/nist.sp.800-22r1a · Cited by 3,617 · cited 11×
“Besides TestU01, the best-known public-domain statistical testing packages for RNGs are DIEHARD [Marsaglia 1996] and the test suite implemented by the National Institute of Standards and Technology (NIST) of the USA [Rukhin et al. 2001].”
MethodInfluentialAsymptotic Theory of Certain "Goodness of Fit" Criteria Based on Stochastic Processes
Anderson, T. W., & Darling, D. A. (1952) · The Annals of Mathematical Statistics · doi:10.1214/aoms/1177729437 · Cited by 3,542 · cited 2×
“Their (approximate) distributions under H0 can be found in Anderson and Darling [1952], Darling [1960], Durbin [1973], Stephens [1970], Stephens [1986a], and Sinclair and Spurr [1988]. The p-value of the GOF test statistic is computed and H0 is rejected if this p-value is deemed too extreme, as usual.”
BackgroundCompression of individual sequences via variable-rate coding
Ziv, J., & Lempel, A. (1978) · IEEE Transactions on Information Theory · doi:10.1109/tit.1978.1055934 · Cited by 3,432 · cited 2×
“This number measures the compressibility of the sequence by the Lempel-Ziv compression algorithm given in Ziv and Lempel [1978]. According to Kirschenhofer et al.”
MethodAn Introduction to Probability Theory.
Fristedt, B., & Moran, P. A. P. (1986) · Journal of the American Statistical Association · doi:10.2307/2288022 · Cited by 3,300
Modern Applied Statistics with S-Plus.
Venables, W. N., & Ripley, B. D. (1996) · Biometrics · doi:10.2307/2532871 · Cited by 2,994 · cited 3×
“The combined LCGs of Wichmann and Hill (1982) is of that form, with three components of moduli near 30300, whose outputs are added modulo 1.”
BackgroundMethodInfluentialRandom Number Generation and Quasi-Monte Carlo Methods.
Collings, B. J., & Niederreiter, H. (1993) · Journal of the American Statistical Association · doi:10.2307/2290359 · Cited by 2,884
Research works printed but not linked: 13
- Gammel , B. M. 2005 . Matpack C++ Numerics and Graphics Library , Release 1 . 8 . 1 . http://users.physik.tu-muenchen.de/gammel/matpack/index.html. Gammel, B. M. 2005. Matpack C++ Numerics and Graphics Library, Release 1.8.1. http://users.physik.tu-muenchen.de/gammel/matpack/index.html.
- IBM 1968. System/360 Scientific Subroutine Package. Version III , Programmer's Manual. IBM, White Plains , New York . IBM 1968. System/360 Scientific Subroutine Package. Version III, Programmer's Manual. IBM, White Plains, New York.
- IMSL. 1997. IMSL STAT/ LIBRARY. Visual Numerics Inc ., Houston, TX . http://www.vni.com/books/dod/pdf/STATVol_2.pdf. IMSL. 1997. IMSL STAT/LIBRARY. Visual Numerics Inc., Houston, TX. http://www.vni.com/books/dod/pdf/STATVol_2.pdf.
- Jenkins , B. 1996 . ISAAC. in fast software encryption . In Proceedings of the 3rd International Workshop . Cambridge, UK, D. Gollmann, Ed. Lecture Notes in Computer Science , vol. 1039 . Springer-Verlag, 41--49. http://burtleburtle.net/bob/rand/isaacafa.html. Jenkins, B. 1996. ISAAC. in fast software encryption. In Proceedings of the 3rd International Workshop. Cambridge, UK, D. Gollmann, Ed. Lecture Notes in Computer Science, vol. 1039. Springer-Verlag, 41--49. http://burtleburtle.net/bob/rand/isaacafa.html.
- L'Ecuyer , P. 2004. Random number generation . In Handbook of Computational Statistics , J. E. Gentle, W. Haerdle, and Y. Mori, Eds. Springer-Verlag , Berlin, Germany . 35--70. Chapter II.2. L'Ecuyer, P. 2004. Random number generation. In Handbook of Computational Statistics, J. E. Gentle, W. Haerdle, and Y. Mori, Eds. Springer-Verlag, Berlin, Germany. 35--70. Chapter II.2.
- Maplesoft . 2006. Maple User Manual . Waterloo Maple Inc., Waterloo, Canada . http://www.maplesoft.com/products/maple/. Maplesoft. 2006. Maple User Manual. Waterloo Maple Inc., Waterloo, Canada. http://www.maplesoft.com/products/maple/.
- Marsaglia , G. 1985 . A current view of random number generators. In Computer Science and Statistics , Sixteenth Symposium on the Interface. Elsevier Science Publishers, North-Holland , Amsterdam, The Netherlands. 3--10. Marsaglia, G. 1985. A current view of random number generators. In Computer Science and Statistics, Sixteenth Symposium on the Interface. Elsevier Science Publishers, North-Holland, Amsterdam, The Netherlands. 3--10.
- MathSoft Inc. 2000. S-PLUS 6.0 Guide to Statistics. Vol. 2. Data Analysis Division , Seattle, WA . MathSoft Inc. 2000. S-PLUS 6.0 Guide to Statistics. Vol. 2. Data Analysis Division, Seattle, WA.
- Project , T. G. 2003 . R : An Environment for Statistical Computing and Graphics. The Free Software Foundation. Version 1 . 6 . 2 . http://www.gnu.org/directory/GNU/R.html. Project, T. G. 2003. R: An Environment for Statistical Computing and Graphics. The Free Software Foundation. Version 1.6.2. http://www.gnu.org/directory/GNU/R.html.
- SciFace Software . 2004. Mu PAD . SciFace Software GmbH & ; Co.KG , Paderborn, Germany . http://www.mupad.de/home.html. SciFace Software. 2004. MuPAD. SciFace Software GmbH & Co.KG, Paderborn, Germany. http://www.mupad.de/home.html.
- Stephens , M. S. 1986a. Tests based on EDF statistics . In Goodness-of-Fit Techniques, R. B. D'Agostino and M . S. Stephens, Eds. Marcel Dekker , New York, NY . Stephens, M. S. 1986a. Tests based on EDF statistics. In Goodness-of-Fit Techniques, R. B. D'Agostino and M. S. Stephens, Eds. Marcel Dekker, New York, NY.
- Stephens , M. S. 1986b. Tests for the uniform distribution . In Goodness-of-Fit Techniques, R. B. D'Agostino and M . S. Stephens, Eds. Marcel Dekker , New York, NY , 331--366. Stephens, M. S. 1986b. Tests for the uniform distribution. In Goodness-of-Fit Techniques, R. B. D'Agostino and M. S. Stephens, Eds. Marcel Dekker, New York, NY, 331--366.
- Wegenkittl , S. 1998. Generalized &phis;-divergence and frequency analysis in Markov chains. Ph.D. thesis , University of Salzburg. http ://random.mat.sbg.ac.at/team/. Wegenkittl, S. 1998. Generalized &phis;-divergence and frequency analysis in Markov chains. Ph.D. thesis, University of Salzburg. http://random.mat.sbg.ac.at/team/.
Cited by
Computer Simulation of Liquids
Allen, M. P., & Tildesley, D. J. (2017) · doi:10.1093/oso/9780198803195.001.0001 · Cited by 20,945
Significant-Loophole-Free Test of Bell’s Theorem with Entangled Photons
Giustina, M., Versteegh, M. A. M., Wengerowsky, S., Handsteiner, J., Hochrainer, A., Phelan, K., Steinlechner, F., Kofler, J., Larsson, J.-Å., Abellán, C., et al. (2015) · Physical Review Letters · doi:10.1103/physrevlett.115.250401 · Cited by 1,529
Strong Loophole-Free Test of Local Realism
Shalm, L. K., Meyer-Scott, E., Christensen, B. G., Bierhorst, P., Wayne, M. A., Stevens, M. J., Gerrits, T., Glancy, S., Hamel, D. R., Allman, M. S., et al. (2015) · Physical Review Letters · doi:10.1103/physrevlett.115.250402 · Cited by 1,402
Handbook of Monte Carlo Methods
Kroese, D. P., Taimre, T., & Botev, Z. I. (2011) · Wiley Series in Probability and Statistics · doi:10.1002/9781118014967 · Cited by 1,104
Quantum random number generators
Herrero-Collantes, M., & Garcia-Escartin, J. C. (2017) · Reviews of Modern Physics · doi:10.1103/revmodphys.89.015004 · Cited by 791
Metadata
- Authors
- L'Ecuyer, P., & Simard, R.
- Affiliations
- Université de Montréal, Canada
- Université de Montréal (CA)
- Venue
- ACM Transactions on Mathematical Software
- Published
- 2007-08-15
- Volume
- 33
- Issue
- 4
- Pages
- 1-40
- ISSN
- 0098-3500 (ISSN-L)
- 1557-7295
- OpenAlex
- W1963898916
- Semantic Scholar
- ba61b9f0b400b6a375eca7f7ecdb18ad871fa9e8
- Cited by
- 1,014
- References
- 130
- Citations by year
- 2026: 50 · 2025: 69 · 2024: 56 · 2023: 60 · 2022: 64 · 2021: 69 · 2020: 68 · 2019: 54 · 2018: 55 · 2017: 51 · 2016: 45 · 2015: 54 · 2014: 59 · 2013: 51 · 2012: 46
- FWCI
- 42.63
- Type
- journal article
- Language
- en
- Open access
- closed
- Locations
- ACM Transactions on Mathematical Software (publishedVersion, public-domain)
- Topics
- Physical Sciences › Mathematics › Numerical Analysis › Mathematical Approximation and Integration
- Physical Sciences › Mathematics › Statistics and Probability › Probability and Statistical Research
- Social Sciences › Decision Sciences › Management Science and Operations Research › Simulation Techniques and Applications
- Keywords
- TestU01, random number generators, uniform random number generators, empirical testing, test suite, bit sequences, sample size analysis
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: TestU01: A C library for empirical testing of random number generators. https://app.cochat.ai/papers/10.1145/1268776.1268777
- The paper
- L'Ecuyer, P., & Simard, R. (2007). TestU01: A C library for empirical testing of random number generators. ACM Transactions on Mathematical Software. https://doi.org/10.1145/1268776.1268777
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.