Verify distribution uniformity/Naive: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 24: Line 24:


DistCheck(function, repetitions, delta)
DistCheck(function, repetitions, delta)
{ Loop, % repetitions ; populate buckets
{ Loop, % 7 ; initialize array
{ bucket%A_Index% := 0
}
Loop, % repetitions ; populate buckets
{ v := %function%()
{ v := %function%()
bucket%v% += 1
bucket%v% += 1