FREE0+0ACC--
← Algorithm Arena

Algorithms / Coding // Monte Carlo

Monte Carlo Estimator

Estimate π by throwing random points in a unit square and checking how many land inside the inscribed circle: P(inside) = π/4, so 4 × (fraction inside) → π. Run it, then predict how many more samples it takes to cut your error in half.

Samples100