Monte Carlo π

Throw random points into the square. The fraction landing inside the quarter-circle, times 4, approaches π.

Points0
Inside0
π estimate—
Error—
Reference: π = 3.1415926536
← Back to Pi