Borrar filtros
Borrar filtros

Statistical Test for Random Number Generators

22 visualizaciones (últimos 30 días)
Branko
Branko el 25 de Abr. de 2012
Editada: John Kelly el 2 de Mzo. de 2015
This document is very well explained by testing random number generators..
Is there somewhere MATLAB functions of these tests?

Respuestas (2)

Thomas
Thomas el 25 de Abr. de 2012
You could try
runstest - Run test for randomness
Not sure if MATLAB has anymore..

Peter Perkins
Peter Perkins el 25 de Abr. de 2012
Editada: John Kelly el 2 de Mzo. de 2015
Branko, although many of those tests would be straight-forward to write in MATLAB, I don't know of anyone who's actually done that. Same for the TestU01 suite (you can google TestU01).
If your question is, "Do the random number generators in MATLAB pass these tests?", then you can check in the doc for the specific algorithms and references to the original papers:
The main paper for the TestU01 test suite describes results for all of the generators. Note that mcg16807, shr3cong, and swb2712 are in MATLAB for backwards compatibility, these are known to fail modern test suites.

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by