Monte Carlo Pi Estimation


How does this experiment work?

The Monte Carlo method is a statistical technique that uses randomness to solve deterministic problems. By randomly generating points in a square and checking if they lie within an inscribed circle, we estimate Pi using the ratio of points inside the circle to the total points.
Pi = 4 x (Points in the circle / Total Points)

The actual value of Pi is approximately 3.1415926535.