Evaluate
WOLFRAM

DEMONSTRATIONS
PROJECT
Buffon's Needle Problem
number
of
needles
(
N
)
200
needle
length
(
L
)
0
.
6
random
seed
hit
ratio
:
hits
N
=
76
200
≈
38
%
π
≈
2
×
L
×
N
hits
=
2
×
0
.
6
×
200
76
≈
3
.
15789
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
π
.