Monte Carlo simulation to compute an approximation of pi. Set the value of maxPoints to specify the number of "raindrops" falling inside/outside a circle.
Based on video https://www.youtube.com/watch?v=VJTFfIqO4TU