Verify distribution uniformity/Naive: Difference between revisions

Content added Content deleted
m (CL cleanup)
(Allowing a generator object as well as a generator function so languages without first-class functions aren't omitted)
Line 5: Line 5:


The function should take as arguments:
The function should take as arguments:
* The function producing random integers.
* The function (or object) producing random integers.
* The number of times to call the integer generator.
* The number of times to call the integer generator.
* A 'delta' value of some sort that indicates how close to a flat distribution is close enough.
* A 'delta' value of some sort that indicates how close to a flat distribution is close enough.