The Math Behind Everything All games

Can you find pi with random numbers?

Points

0

Inside the circle

0

Your pi

?

Add points to get a first estimate.

Stuck in a room until you find pi

All you have is a button that gives a random decimal between 0 and 1. Press it twice and you have a random point in a square. The share of points that land inside the circle is pi divided by 4.

How it works
  1. Each point is two random decimals: how far across the square, and how far up. The square is 1 by 1, so the circle inside it has a radius of one half.
  2. A point is inside the circle when it's less than one half from the center (the distance formula). The circle's area is pi times one half squared, which is pi over 4 of the square.
  3. Add points 1, 100, 10,000 or a million at a time. The simulator counts the share inside the circle and multiplies by 4. That's your estimate of pi.

Decimal places you can trust

None yet

Points for one more

How the math works

What does each digit cost?

      Want a game like this for your brand? Work with me

      For education and entertainment. Found a mistake in the math? Email me and I'll fix it.