Simulate probability p
Using only a fair coin, how do you simulate an event of probability ?
Show hints (2)+
- Coin flips generate the bits of a uniform number.
- Compare those bits to 's binary digits.
Answer
Reveal answer →Final answer
Compare coin-flip bits to the binary expansion of p
Create a free account to see the full worked solution and track your progress.
Interview format: Market Maker, Betting Game Rounds