Terrapin Resources

Coin Flips

Have you ever wondered, when you flip a coin, whether a coin falls more often on the head or the tail? How often would you have to flip the coin to achieve a probability of 50 percent (both sides fall equally often)?

Probability theory says it should be even but the experiment shows it rarely comes out even. This should lead into a discussion of what is the value of the theory, perhaps other than benefitting a casino?

Well, here is the program to help you out. Load the program and enter COINFLIPS and the number of times, preferably not more often than 700 times. The program prints each flip and summarizes the result at the end.


  • Procedure: COINFLIPS
  • Description: Flip a coin to see how often heads or tails will fall
  • Level: Beginner
  • Tags: Math, Random