Using the random point method to find the pi