Monte Carlo Method to Approximate Pi

Move the slider to approximate the value of pi. (When the value of n gets large, the applet will slow down)