Probability theory, Calculating the area of a shape using the Monte Carlo method, The solution of the problem of Buffon