Calculating PI with random numbers