Run in Turbo Mode for quicker simulation. Hover over "Explanation!" for a, well, you know! How long have you tried to run the simulation, and how close to pi have you gotten?
This uses a monte carlo random method to estimate pi. If the red circle has radius 1, then blue square has side length 2. The red circle's area = pi*r^2 = pi*(1)^2 = pi The blue square's area = s^2 = 2^2 = 4 The proportion of random dots falling inside the area of the circle (red) to dots falling inside area of square (all dots, red and blue) is therefore pi/4. Simply multiply the proportion by 4 and you get an estimate of pi using random numbers!