Scatter the needles to find the approximate value of pi.
Draw parallel lines at equal intervals and randomly scatter the needles from above.
The approximate value of pi can be obtained from the ratio of the number of needles that intersect the parallel lines.
Let's think mathematically about the reason.