Coin Flip / Dice Roller
EverydayFlip a virtual coin or roll any size of dice — D4 to D100. Roll up to 20 dice at once. Instant results, completely free, no sign-up or install required.
What is a Coin & Dice?
The Coin Flip / Dice Roller is a virtual randomisation tool that replicates two of the most common real-world fairness mechanisms — flipping a coin and rolling a die — without needing any physical objects. Switch between Coin Flip and Dice Roll mode, set the number of sides and the count, and each click of Generate produces a fresh, unbiased result instantly.
Coin flips produce Heads or Tails, each with exactly 50% probability. Dice rolls produce a whole number from 1 to N, where N is the number of sides you choose — any value from 2 to 100 is supported, covering the full standard tabletop RPG set (D4, D6, D8, D10, D12, D20, D100) as well as any custom die size. You can roll or flip up to 20 at once, with each result displayed on its own line so individual outcomes are easy to read and record.
Physical coins and dice are not always to hand, and even when they are, rolling multiple dice or logging results for a game introduces friction. A virtual tool removes the friction entirely — no dice to lose, no squinting at tiny faces, no disputes about whether the roll was valid. Every outcome is generated with equal probability and the logic is fully transparent.
For picking a number across an arbitrary range rather than simulating a specific die, the Random Number Generator gives you explicit min and max control. For generating placeholder content to pair with game content or test data, see the Lorem Ipsum Generator.
How to use this Coin & Dice calculator
- Select Coin Flip or Dice Roll from the Mode dropdown.
- If rolling dice, set Dice Sides to the die type you need — enter 6 for D6, 20 for D20, or any custom number from 2 to 100.
- Set Number of Flips / Rolls to how many coins or dice you want to simulate in one click (1–20).
- Click Generate — results appear immediately in the Results output box, one per line.
- Click the copy button to copy all results to your clipboard in a single action.
- Click Generate again any time you need a new set of results; previous results are replaced.
Formula & Methodology
Coin flip: A single call toMath.random()returns a number in [0, 1). If the value is below 0.5, the result is Heads; otherwise Tails. Both outcomes have exactly equal probability. Dice roll: For a die with N sides, the formula is:result = Math.floor(Math.random() × N) + 1This maps the [0, 1) range uniformly onto integers 1 through N. Each face has probability 1/N. Each flip or roll in a batch is computed by an independent call toMath.random(), so results within a batch are mutually independent — the same face can appear multiple times, exactly as it can with physical dice. The browser'sMath.random()implementation is a pseudo-random number generator (typically xorshift128+ or a similar algorithm) seeded by the runtime at page load; it produces sequences that pass standard statistical randomness tests and are suitable for all game and decision-making purposes.