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:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: