Rolling Dice with Auto-counting

  Download Source Code


Counting Loop

This program uses a loop to roll 3 dice 1000 times.  Each time, it automatically decides whether there was a MATCH
in the 3 dice or not.  If a MATCH occurs, it automatically adds 1 to MATCHES, which is a "running total" of the
number of times a match occurred.  At the end it divides by 1000 to give the fraction of times that a match occurred.
Since the result is below 0.5, it means that a person betting on this game should bet AGAINST a match, rather than
betting for a match.

Practice