Simulate π

Calculate π by drawing random dots on a square of width 2 that encompasses a circle of radius 1. The ratio of the points landing within the circle to the number of total points is equal to π/4.

Total Points Drawn:

Points Inside:

Points Outside:

Ratio Inside/Total =

π =