Category
Dice & Coins
Coin flips, dice rolls, and the classic Magic 8-Ball.
Three classic decision objects, digitized: a coin, a die, and the Magic 8-Ball. All three trace back to physical objects people have used for centuries to make a choice they didn't want to make themselves -- and all three carry a specific, well-documented real-world flaw that a genuinely random digital version avoids.
This is a small category by design -- just three tools -- but each one has a distinct fairness story worth understanding on its own terms rather than assuming 'they're all just random.'
All three objects in this category have a long pre-digital history as decision tools -- dice-like objects show up in archaeological finds thousands of years old, coin tossing has been documented as a decision method since at least Roman times, and the Magic 8-Ball itself traces to a 1940s fortune-telling device -- which is part of why they still feel like the most immediately recognizable 'randomness' objects most people know.
Coin Flip
Flip a virtual coin with true 50/50 randomness — heads or tails.
Dice Roller
Roll d4 to d20, multiple dice at once — built for tabletop games.
Magic 8-Ball
Ask a yes-or-no question, shake, and get your classic 8-ball answer.
Coin flip: the cleanest possible binary draw
Two outcomes is the one case where the byte-to-outcome math needs no cleverness at all -- half of every possible byte value is even, half is odd, so checking that single bit hands back a dead-even 50/50 split without any discard-and-redraw step. The interesting comparison isn't to the math, though, it's to an actual coin: mathematician Persi Diaconis's research on physical coin tosses found a real coin tends to land back on whichever face it started on around 51% of the time, a small lean caused by how the mass sits on either side. A digital flip was never sitting on a table to begin with, so that particular quirk has nothing to attach to.
Dice roller: exact per-face fairness for tabletop games
A 20-sided die is the clearest example of why this site bothers with rejection sampling at all: 20 doesn't split cleanly into the 256 values a random byte can take, leaving a lopsided remainder that would quietly favor the lower half of the die's faces if you mapped bytes onto numbers the easy way. The fix is to throw away any byte landing in that remainder and pull a fresh one, over and over if needed, until every face from 1 to 20 is equally reachable. Tabletop games lean on that exactness more than people usually realize -- a natural 20 is supposed to be a 1-in-20 event, not a 1-in-17 event dressed up to look the same, and that gap only shows up statistically after enough sessions to notice.
Manufactured dice have their own quiet failure mode here too: a die that's ever so slightly heavier on one face, or has a corner rounded a touch more than the rest, will drift off true fairness in a way no player could spot by eye. A byte-corrected digital roll never has a heavy side to worry about.
Magic 8-Ball: a faithful reproduction, not a clean 50/50
This is the odd one out in the category, on purpose. Where the coin flip and dice roller are both trying to be as flat and even as possible, the 8-ball is trying to be faithful to a specific physical toy that was never flat to begin with -- 20 printed replies split 10 affirmative, 5 hedging, 5 negative. The draw across those 20 lines borrows the same discard-and-redraw approach the dice roller needs for its 20 faces, but the goal here isn't neutrality; it's accuracy to the original object. Ten of twenty replies leaning positive means a 'yes'-shaped answer really is somewhat more common than a 'no'-shaped one, and that's correct behavior for this tool rather than a bug to fix.
Choosing between coin, dice, and 8-ball
For a clean, genuine two-outcome decision, the coin flip is the right tool -- exact 50/50, no ambiguity, no extra flavor. For anything that needs more than two outcomes with exact per-face odds, especially tabletop gaming where the specific face-count math matters (a d20's 1-in-20 crit chance, for instance), the dice roller is purpose-built and supports the standard d4 through d20 range. For a nostalgic, deliberately non-committal answer to a yes-or-no question -- where you're not actually looking for a decisive verdict, just a bit of fun -- the Magic 8-Ball's 20-answer set, including its 'ask again later' style hedges, is the right choice specifically because it isn't a clean binary.
The gambler's fallacy, and why streaks don't change the odds
A common misconception across all three of these tools is the gambler's fallacy: the belief that after a run of the same outcome (say, five coin-flip heads in a row), the opposite outcome becomes 'due.' It isn't. Each flip, roll, or 8-ball draw on this site is a fully independent random event -- the tool has no memory of previous results, and the random-bit or rejection-sampling mechanism underneath doesn't track history at all. A coin that's landed on heads five times in a row still has exactly a 50% chance of heads on the sixth flip, precisely because the sixth flip is a completely fresh, independent draw with no connection to the previous five.
This is worth naming explicitly because it's genuinely counterintuitive -- human pattern-recognition instincts push hard toward expecting 'balance' to reassert itself, but true independent randomness doesn't work that way, and a tool that artificially corrected for streaks to 'feel' fairer would actually be less fair, not more.
What none of these three tools claim to do
It's worth being explicit about the limits of this category. None of the three tools here are built for gambling with real money, and none of them include any mechanism for verifying a result to a third party after the fact beyond what you can see and record yourself in the moment. They're built for the everyday, low-stakes version of these classic decision objects -- settling a chore dispute, running a tabletop game, having a bit of nostalgic fun with an 8-ball -- not as a certified random-number source for a regulated use case, which would need a different kind of auditability than a simple client-side tool provides.
Reading results with a critical eye
One useful habit when working with any of these three tools for something that actually matters -- splitting a real prize, deciding a real chore rotation over weeks -- is running a larger batch and checking the overall distribution rather than trusting a single draw's 'feel.' Flip the coin 50 times and count heads versus tails; roll the die 100 times and chart how often each face comes up. Because the underlying draw is genuinely uniform, a large enough batch should land close to the expected even split, and a batch that looks meaningfully skewed is worth treating as a signal to double-check rather than dismiss, the same instinct a careful person would apply to a physical die or coin they suspected might be loaded.
This same batch-testing instinct is exactly how researchers like Persi Diaconis originally documented the real physical coin-flip bias mentioned earlier -- not by suspecting a single flip, but by tossing thousands of coins mechanically and measuring the aggregate result. A digital tool built on crypto.getRandomValues should, and does, hold up to that same scrutiny far more cleanly than a physical object ever could.
Frequently asked questions
Which of these three is the fairest, mathematically speaking?
All three are internally fair relative to their own design -- the coin flip and dice roller are exact uniform draws across their outcomes, while the Magic 8-Ball is an exact uniform draw across its 20 specific answers, which happen to skew affirmative by design, matching the real toy.
Is a real coin or die actually less fair than the digital versions here?
Slightly, yes -- documented research shows small physical biases in both real coins (about 51% same-face bias) and imperfectly manufactured dice, biases these digital tools don't have.
Can I roll more than one die at a time?
Yes -- the dice roller supports rolling multiple dice at once, with each die drawn independently and fairly.
Why doesn't the Magic 8-Ball give a plain 50/50 yes or no?
Because it's built to faithfully reproduce the original toy's exact 20-answer set and ratio, not to be a clean binary tool -- for a true 50/50, the yes-no picker in the pickers category is the more direct choice.
If I flip the coin 10 times, am I guaranteed 5 heads and 5 tails?
No -- each flip is independent, so while the long-run average trends toward 50/50 across many flips, any specific run of 10 can land unevenly by chance, and that's expected, not a sign of unfairness.
Does rolling the same die number twice in a row mean something is wrong?
No -- with a fair d20, rolling the same number twice in a row happens by chance about 1 in 20 times, which isn't rare enough to suggest a problem.
Which of the three is best for teaching kids about probability?
The coin flip is the simplest starting point since its 50/50 math is easy to grasp, while the dice roller is a natural next step for introducing multi-outcome probability once the basic concept clicks.
Is there a version of the dice roller that supports non-standard die sizes, like a d3 or d100?
The current set covers the standard tabletop range, d4 through d20; unusual sizes outside that range aren't currently supported.
Why do people still argue about coin-toss fairness if the math is well understood?
Because the small real-world bias in physical coins (around 51% same-face) is counterintuitive and easy to dismiss as folklore, even though it's been measured in actual research -- which is part of why a mathematically exact digital coin is a genuinely meaningful upgrade, not just a novelty.