Buffon's Needle

The problem
drop a needle on a lined floor · L ≤ Dwhat's the probability the needle crosses a line?

You have a wooden floor with evenly spaced parallel lines, distance DD apart. You drop a needle of length LDL \leq D at random — uniform random position and uniform random angle.

What is the probability the needle crosses a line?