TextArray
100% local

Dice roller & coin flip

Roll d4 to d100 dice or flip a coin with cryptographically fair results.

Output

Dice roller & coin flip

Pick a die — d4, d6, d8, d10, d12, d20 or d100 — or a coin, set how many times to roll, and the results appear instantly, one per line. The full tabletop set covers board games when the physical dice have gone missing, Dungeons & Dragons and other RPG sessions, percentile rolls on the d100, quick classroom demonstrations of probability and any small decision you would rather hand to chance.

With "Show sum and stats" on, a summary follows the rolls: the sum, the lowest and highest roll and the average. That turns ten d6 into a damage total you can read off directly, and a few hundred rolls into a quick sanity check that the distribution looks the way probability says it should. Coin flips get their own summary — how many heads, how many tails and the percentage split.

The randomness is the part most online rollers get wrong. This one draws every roll from crypto.getRandomValues, the browser's cryptographically secure source, and maps it onto the die with rejection sampling, so no face is ever favoured. A naive generator built on modulo arithmetic quietly skews toward low faces; here a 20 is exactly as likely as a 1, every single roll.

Everything runs locally in your browser. No roll is sent to a server, logged or stored anywhere, which also means the results are truly yours: nobody can replay, predict or tamper with a draw that never left your device. Roll one die or ten thousand — it works offline just the same.

FAQ

Are my rolls sent to a server?
No. Every roll is generated in your browser with the Web Crypto API and never leaves your device.
How fair are the rolls?
Each roll comes from crypto.getRandomValues with rejection sampling, so every face has exactly the same probability. Math.random is never used.
Which dice are supported?
The standard tabletop set: d4, d6, d8, d10, d12, d20 and d100 (percentile), plus a coin for heads or tails.
Can I roll several dice at once?
Set the number of rolls and each result lands on its own line. Turn on the stats option to get the sum, minimum, maximum and average — handy for damage rolls.