The value of Phi can be calculated in a number of ways. One of them is compare randomize point position that inside circle or outside like shown in this app. The concept of this app can you find at https://computing.llnl.gov/tutorials/parallel_comp/#Examples, and you can randomize put the dot in circle by tap or just run start button to see how finding Phi will work. Let try and have fun!