Use turbo mode to go faster. Basically, the method drops a bunch of dots in a square and checks how many are in a circle, and takes the ratio of the total number of dots to the number inside the circle, approximating 4/pi, then using that to compute pi. It doesn't actually do that good a job, but in theory if we do it enough (assuming I didn't make a mistake) we can approximate pi.
Pi, in case you're curious, is not 3.11 This approximation is just very slow (and quite possibly flawed)