Estimating π from Random Points (Square scatter)

Points sampled in [0,1]×[0,1]. Ratio inside quarter-circle → π.

Visualization • Live
Unit square — quarter circle x²+y²≤1 (origin lower-left)
Blue = inside · Gray = outside
800/s
Frame samples controlled by speed.
Convergence: π estimate over iterations
X: iterations · Y: π estimate
This plot shows the estimate of π as sampling progresses.