4 ms·
If you have a coin: Heads and tails represent bits. Flip a coin three times and add up the result to emulate a six-sided dice roll. e.g., heads, heads, tails =
by evantbyrne 10mo ago
If you have a coin: Heads and tails represent bits. Flip a coin three times and add up the result to emulate a six-sided dice roll. e.g., heads, heads, tails = 3. If you get 7, then try again.
- nrhrjrjrjtntbt 10mo agoIf you get all heads or all tails then use the last toss as part of your next set of 3. E.g. HHHHT -> HHT -> 6
- evantbyrne 10mo agoAh yeah of course, there is a zero case as well. I was thinking you just restart as to not bias the result. That's an interesting alternative though
- daiwt 10mo agoThat will make HHH always 6 and TTT always 1
- nrhrjrjrjtntbt 10mo agoHHH becomes H Then depending on the next 2 throws HH -> keep going HT -> 6 TH -> 5 TT -> 4 For TTT similar with K,1,2,3