mercredi 26 décembre 2018

Dieharder test on custom PRNG

I`m working on a homework assignment , I wrote my custom pseudo random number generator and I was curios to test it with dieharder (linux).

I tried more tests, 10.000, 100.000 , 1.000.000, 10.000.000 numbers and every time all tests fail , and every time all p values are 0.000000 (zero). Every time , every test. I have to generate numbers between 0 - 255

I was thinking that my generator is broken, but how can I be sure, I read about the p value but I can`t find anything about it being 0 , I read that if it is a small value it should be a good thing.

If you need I will post my algorithm for generating the numbers.

My file:

#================================================================== 
 # generator rnd2 seed = 184752158 
 #================================================================== 
 type: d 

 count: 1000000

 numbit: 32 

and my numbers one below the other.

and command: dieharder -g 202 -f myfile.txt -a.




Aucun commentaire:

Enregistrer un commentaire