Approximates pi using a Monte Carlo simulation that plots random points on a unit circle and calculates the ratio between points inside and outside the circle.