Points
Inside the circle
Fraction inside
Random points
inside outside
Fraction inside the circle
dotted line: the value it converges to
Drop random points in the square [−1, 1] × [−1, 1] and count how many land inside the unit circle. The fraction inside estimates a number you know well.
inside outside
dotted line: the value it converges to