News for hackers. Stuff that matters.
Re:Buffon's Needle Problem Visualized by LegionMammal978 on Monday May 04, 2026 @09:39PM (#48017089)
You can pick a uniform random orientation without trig functions by first generating a random point in the unit disk via rejection sampling, then projecting it onto the boundary [0].

Of course, using rejection sampling for disk points will give you an estimate for π more directly.

[0] https://mathworld.wolfram.com/CirclePointPicking.html

There are no comments on this comment yet.