Home > Software > Randomness Test


Randomness Test


Battery of test & reference source code


 DIEHARD 

DIEHARD battery of test of randomness
The Marsaglia random number CDROM - George Marsaglia - Florida State University


DIEHARD are a battery of statistical tests for measuring the quality of a random number generator. They include: Birthday spacings test, Overlapping 5-permutation test, Binary rank matrices test, Bitstream test, OPSO, OQSO & DNA test, Count-the-1's test, Parking lot test, Minimum distance test, 3D spheres test, Squeeze test, Overlapping sums test, Runs test, Craps test.


Original Source: zip.jpg Download

 Chi-Square 

Independent Research Project - Penn State University


Chi-Square is a statistical test commonly used to compare observed data with data we would expect to obtain according to a specific hypothesis. Chi-square requires that you use numerical values, not percentages or ratios.


Original Source: zip.jpg Download

 Pre-recorded Random Stream 

libObfuscate Cryptography


libObfuscate CSPRNG has been used to create high-quality pre-recorded random streams, free to be used, cited, edited for any academic or software development.


16MB streams:

 

#01 #02 #03 #04 #05 #06 #07 #08 #09 #10 #11 #12 #13 #14 #15 #16

 

#17 #18 #19 #20 #21 #22 #23 #24 #25 #26 #27 #28 #29 #30 #31 #32

64MB streams:

 

#01 #02 #03 #04 #05 #06 #07 #08 #09 #10 #11 #12 #13 #14 #15 #16

 

#17 #18 #19 #20 #21 #22 #23 #24 #25 #26 #27 #28 #29 #30 #31 #32

 Pre-recorded Normal Distribution 

Ziggurat Random Number Generator - Florida State University


libObfuscate CSPRNG has been used as input for the Ziggurat RNG to create high-quality Normal distributions, free to be used, cited, edited for any academic or software development.


[ 4x4xN ]:

 

4x4x1 (.ZIP 101KB) [256 sets]

 | 

4x4x3 (.ZIP 170KB) [256 sets]

[ 8x8xN ]:

 

8x8x1 (.ZIP 205KB) [256 sets]

 | 

8x8x3 (.ZIP 490KB) [256 sets]

[ 16x16xN ]:

 

16x16x1 (.ZIP 635KB) [256 sets]

 | 

16x16x3 (.ZIP 1.71MB) [256 sets]

[ 32x32xN ]:

 

32x32x1 (.ZIP 2.26MB) [256 sets]

 | 

32x32x3 (.ZIP 6.52MB) [256 sets]

[ 64x64xN ]:

 

64x64x1 (.ZIP 8.62MB) [256 sets]

 | 

64x64x3 (.ZIP 25.2MB) [256 sets]

[ 128x128xN ]:

 

128x128x1 (.ZIP 33.5MB) [256 sets]

 | 

128x128x3 (.ZIP 100MB) [256 sets]

[ 256x256xN ]:

 

256x256x1 (.ZIP 133MB) [256 sets]

 | 

256x256x3 (.ZIP 399MB) [256 sets]

[ 512x512xN ]:

 

512x512x1 (.ZIP 531MB) [256 sets]

 | 
 | 

512x512x3 (.ZIP 797MB) [128 sets]
512x512x3 (.ZIP 797MB) [128 sets]

[ 1024x1024xN ]:

 

1024x1024x1 (.ZIP 747MB) [90 sets]
1024x1024x1 (.ZIP 747MB) [90 sets]
1024x1024x1 (.ZIP 631MB) [76 sets]

 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 

1024x1024x3 (.ZIP 797MB) [32 sets]
1024x1024x3 (.ZIP 797MB) [32 sets]
1024x1024x3 (.ZIP 797MB) [32 sets]
1024x1024x3 (.ZIP 797MB) [32 sets]
1024x1024x3 (.ZIP 797MB) [32 sets]
1024x1024x3 (.ZIP 797MB) [32 sets]
1024x1024x3 (.ZIP 797MB) [32 sets]
1024x1024x3 (.ZIP 797MB) [32 sets]


...
UINT32 kn[128];
double fn[128];
double wn[128];
r4_nor_setup( kn, fn, wn );

for( y=0; y<m; y++ ) {
for( x=0; x<m; x++ ) {
matrix_array[y][x] = r4_nor( kn, fn, wn); } }

...


Original Source: zip.jpg Download