Click the green flag. The program picks 1 or 2, 1 is heads and 2 is tails. It tracks the pattern, and tracks how many heads or tails in a row. It also displays the highest streak in the "MostInRow" variable. Longest Streak shows the biggest streak on this project in the world!
The weak law of large numbers states that, in a truly random environment, the exact proportion of choices will emerge from large amounts of trials. This essentially means that, given enough coin flips, the proportion of heads vs tails will even out to 50/50. Thanks to The_Grits for