News for hackers. Stuff that matters.
Re:350,757 coin flips show coins tend to land the same-side ... by vikingerik on Tuesday October 10, 2023 @09:57AM (#37832170)
Also interestingly, this extends beyond a two-sided coin, to any number of possible results, like a die with N sides.

To get a fair result from a biased dN: Roll it N times. If you don't get all N distinct results, restart. If you do, then the first of those is your final result.

Re:350,757 coin flips show coins tend to land the same-side ... by Terr_ on Tuesday October 10, 2023 @08:32PM (#37839572)
Also related to problems like "simulate an 11-sided die with a 6-sided die", where an answer involves discarding and retrying certain rolls.

In both cases it has to do with shaping multiple rolls using some knowledge of outcome-symmetries and overlaps.