An example of using TestU01 to assess the quality of a pseudorandom number generator.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile
README.md
crush.c
install-testu01.sh
run_tests.py
summarise_results.py

README.md

Testing pseudorandom number generators

This repository contains a simple example of using TestU01 to assess the quality of a pseudorandom number generator, as part of an article I wrote on testing PRNGs. It replicates the testing of the xososhiro128+ generator as detailed on the PRNG shootout page, but can be easily modified to test other generators.

Assuming you have the tools wget, unzip, make, gcc and python, you can run the following commands to run the example:

$ ./install-testu01.sh && make
...
$ ./run_tests.py crush-std results && ./summarise_results.py results
...