Sesame seeds are randomly thrown into a square with a side length of 2 centered on the origin O on the coordinate plane and fall on the unit circle centered on O.
Internal probability = area of circle/area of square = π/4;
According to random simulation: randomly generate 1 point, consider the probability that he falls in the circle: * * throws 1000 times, and there are m points falling in the garden;
So the probability = m/1000;
Then: π/4 = m/1000;
π=4M/ 1000=P