Coin toss and dice roller
Simulate heads or tails, or rolls of a 2–100-sided die.
Enter data
Choose a coin or die and 1–100 trials. A die has 2–100 sides numbered from 1. Fields marked with an asterisk are required.
About this tool
Simulate heads or tails, or rolls of a 2–100-sided die. See every result and a batch summary.
Make a simple decision or practice probability with a virtual coin and die. Each trial uses uniform selection independent of previous trials. A streak of heads does not need to be “balanced”. Results are a simulation, not a physical-die model, prediction or betting tool.
How to use the calculator
- Set options and inputs before selecting “Draw”. Examples demonstrate behavior, not the next result.
- Review the table, then deliberately copy or print the result if needed. Every click starts a new draw.
- Editing a field or resetting removes the previous form result, not previously copied or printed data.
Calculation details
Formula and calculation method
A coin has two uniformly selected outcomes. An n-sided die selects an integer from 1 through n. Each trial uses a fresh random word and rejection sampling to avoid modulo bias.
Worked example
Five coin trials could produce Heads, Tails, Heads, Heads, Tails: three heads and two tails. Dice rolls 1, 6, 2 total 9. These are interpretation examples, not expected outputs.
Limitations
- Up to 100 trials per batch; dice have 2–100 sides. No weighted or custom-labelled faces, physical animation or stored history.
- No draw history or certification. No identity checks, weighted entries, secret-key generation or guarantee of a different result on another click.
Sources
- MDN — Web Crypto and getRandomValues
- libsodium — uniform selection without modulo bias
- NIST — Fisher–Yates shuffle algorithm
Engine version: 1.0.0 · Last reviewed: 1 October 2026
Frequently asked questions
Must tails follow several heads?
No. Trials are independent, so a new toss does not remember an earlier streak. A short batch need not contain equal heads and tails counts.
Is the total a single-roll result?
No. The table shows each roll separately; the total adds all dice results in the batch. For coins, the summary counts heads and tails rather than assigning a numeric score.
Is the list saved or sent?
Form entries and results stay in browser memory, without being added to the URL, localStorage, sessionStorage or analytics. Copying and printing are your actions. Visiting the page still makes a hosting request; avoid confidential data.
Is this a certified prize-draw tool?
No. We use Web Crypto and selection without modulo bias, but provide no participant audit, redraw controls or public record. Do not use results as proof of a compliant prize draw, for gambling or for generating secrets.