Here is a classic example of generating π from a finite sequence of random numbers. Consider a unit circle (r = 1)
inscribed inside a square (sides of L = 2). The area of the circle is π (π r2 and the area of the
square is 4 (L2). If the square is populated with random points (x,y), the ratio of points falling inside the circle to the
total number of points will be the area ratio π/4. It would seem that more random points would generate a better approximation of π.
That is not the case since π is irrational - it can not be calculated as the ratio of two whole numbers. But there still exist close approximations,
most famous are 22/7 (0.04% error) and 355/113 (0.0000085% error), both of which have suitable accuracy for many calculations. Due to the random
nature of the calculations these two results might not be encountered.
Three different random number generators are available with similar results - update rate about 60/s.