- http://en.wikipedia.org/wiki/Statistical_randomness

- The
**frequency test**, was very basic: checking to make sure that there were roughly the same number of 0s, 1s, 2s, 3s, etc.

- The
**serial test**, did the same thing but for sequences of two digits at a time (00, 01, 02, etc.), comparing their observed frequencies with their hypothetical predictions were they equally distributed.
- The
**poker test**, tested for certain sequences of five numbers at a time (aaaaa, aaaab, aaabb, etc.) based on hands in the game poker.
- The
**gap test**, looked at the distances between zeroes (00 would be a distance of 0, 030 would be a distance of 1, 02250 would be a distance of 3, etc.).
- chi-square test,

https://en.wikipedia.org/wiki/Pearson%27s_chi-squared_test

https://en.wikipedia.org/wiki/Chi-squared_distribution

If a given sequence was able to pass all of these tests within a given degree of significance (generally 5%), then it was judged to be, in their words “locally random”.

- http://www.drdobbs.com/testing-random-number-generators/184403185

### Like this:

Like Loading...

*Related*