About this app
This interactive Monte Carlo simulation estimates pi using geometric probability. Random points are placed inside a square containing a circle. The circle’s area divided by the square’s area is π/4, so the fraction of points that land inside the circle approaches π/4 as more points are generated. By multiplying the hit ratio by four, the simulation obtains an approximation of pi.