Calculates an approximation of pi using the monte carlo method, in this case 286265362 iterations