Coding challenge

Using random integers, as given by math.random(low,high), write a short program to simulate 5 people having matching coin flips. Find the percentage of five-of-a-kind results after 125 flips. (From Cheney, p. 571.)

Type your code here:


Lua reference

See your results here: