Compute π using a Monte Carlo method. https://en.wikipedia.org/wiki/Monte_Carlo_method The blue points lie inside the unit circle's first quadrant, the red ones lie outside of it. The area of the quadrant is π/4 = Points_Inside/All_Points. (Drawing is not really necessary.)