LibraryQuant puzzles
A floor is ruled with parallel straight lines, evenly spaced a distance apart. We drop a needle of length onto it, with , so the needle can cross at most one line. The needle lands with its centre uniformly placed and its orientation uniformly random, independently of each other.
Describe the landing by where the centre falls between two lines and how the needle is tilted, and ask how far the needle reaches across the lines at a given tilt.
Two independent uniforms, position across the gap and orientation, and the crossing condition compares one against the sine of the other. Averaging a sine over a uniform angle is where pi enters.
You have the question, a hint and the idea. It sets up the landing of the needle, derives the crossing probability, and explains how a circle's constant gets into a problem with no circle.