Can You Reach the Edge of the Square?
Two puzzles from Fiddler on the Proof: starting at the centre of a unit square, move in a uniformly random direction until you hit the boundary — what is the expected distance travelled? Same question in a unit cube.
In the square, the expected distance is . In the cube, . The PDF includes the uniform-on-sphere sampling derivation and Monte Carlo verification for both.