I play with PRNG (like Mersenne Twister and the rand()stdlib function) and I would like to get a good test that will help me determine the quality of the random data generated by PRNG. I calculated the Pi value using the random numbers generated by PRNG, and I believe that rand()Mersenne Twister is very close to suggesting a difference (do I need to check after ten decimal points?).
I don't have a big idea about Monte Carlo simulations; let me know about any algorithm / application (maybe something simple, but that can give good conclusions), which will help me distinguish them in quality.
EDIT 1: I haven’t noticed this before, but there is a similar thread: How to check random numbers?
EDIT 2: I cannot interpret the NIST results as indicated in one of the comments. I got this idea of visual interpretation of the template (if any) from random.org and follow this because of its simplicity. I would be very happy if anyone could comment on my testing process:
- Generate N random ones from [0,1] using rand () and MT1997
- if
(round(genrand_real1() / rand_0_1())), then red pixel, still black
As I understand it, this is not a very accurate solution, but if it gives a reasonable estimate, then I could live with it at the moment.
source
share