Estimating π with darts

Darts land at random on a square. The circle covers exactly π/4 of that square — so four times the share that lands inside is π, no geometry required.

throwing
inside 0 outside 0 seed 0

square 2 × 2  ·  circle radius 1  ·  a dart is inside when x² + y² ≤ 1

running estimate

3.000000
4 × 0 ÷ 0
π, actually
3.141593
off by
—
decimals right
—
darts thrown
0
95 % band here
—

convergence

The shaded band is where the estimate should usually land. Ten times more accuracy costs a hundred times more darts.

controls

241 / sec
510,000

space pause · t throw 10k · r reset