WOLFRAM|DEMONSTRATIONS PROJECT

Buffon's Needle Problem

​
number of needles (N)
200
needle length (L)
0.6
random seed
Toss a box of N needles onto a floor with parallel lines. Count the number of hits—that is, the number of times that a needle crosses a line. This turns out to be a method for estimating
π
.