Enter a sample size for this Monte Carlo method of estimating pi. Note: Increasing total points (sample size) improves the accuracy.
The Monte Carlo method estimates Pi by generating random points within a square enclosing a circle and calculating the ratio of points falling inside the circle. The formula: 4 * ( points in circle / total points ) This formula works because the ratio of areas (circle/square) is pi/4.