By embedding games on your website or application you are agreeing to the Construct.net Arcade Terms of Service.
The Monte Carlo method is a way to approximate the value of pi using a combination of random sampling and geometric probability: