Labs · Randomness

Buffon's Needle

Buffon's Needle simulation

Another way to find π by chance, first posed in 1777. Drop needles of length l onto a floor of parallel lines spaced d apart. The probability that a needle crosses a line is 2l / (π·d), so counting crossings gives π ≈ 2·l·N / (d·hits).

The circle never appears, yet π shows up because every needle angle is equally likely, and averaging over all angles means averaging a sine.

Change the needle-to-gap ratio. The estimate still converges to π, but the speed of convergence changes.

Controls

Evolved from Monte Carlo π.