cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Prove a random generated number is unifo
Prove a random generated number is uniform distributed
Aug 20, 2014 at 10:16am UTC
ameneh
(14)
Given a random number generator to generate a number between [0,N), how to prove this number is uniform distributed.
Any suggestion?
Aug 20, 2014 at 12:44pm UTC
kbw
(9488)
Checkout the
Chi Square Test for Uniformity
.
It's a measure of how uniform your results are.
The idea is, you generate N numbers from you PRNG. You break them into intervals and check how closely the intervals have the same number of entries.
If you want something more formal:
http://csrc.nist.gov/publications/nistpubs/800-22-rev1a/SP800-22rev1a.pdf
Topic archived. No new replies allowed.