Heads or tails, one per line
Each flip is an independent draw from the uniform distribution on {Heads, Tails}. The condition Math.random() < 0.5 is checked once per flip and the result printed on its own line. Over 1000 flips you should expect roughly 500 of each, give or take the usual square-root variance.
The Flips input ranges from 1 to 1000. The output panel emits the words Heads or Tails, capitalised, one per line. Pastes cleanly into a list or a markdown table after some hand-formatting.
For a number with more than two outcomes use the dice roller. For random integers in a range use the random number generator.
How to use coin flip
- 1Open the tool. The input panel can be left empty.
- 2Set Flips in the option panel (default 10, maximum 1000).
- 3The output panel shows that many
Heads/Tailsresults, one per line. - 4Click Copy to grab the list.
- 5Click Download to save as a plain-text file.
Keyboard shortcuts
Drive TextResult without touching the mouse.
| Shortcut | Action |
|---|---|
| Ctrl F | Open the find & replace panel inside the input Plus |
| Ctrl Z | Undo the last input change |
| Ctrl Shift Z | Redo |
| Ctrl Shift Enter | Toggle fullscreen focus on the editor Plus |
| Esc | Close find & replace, or exit fullscreen |
| Ctrl K | Open the command palette to jump to any tool Plus |
| Ctrl S | Save current workflow draft Plus |
| Ctrl P | Run a saved workflow Plus |
What this tool actually does
50/50 binary outcomes
Each flip is an independent Math.random() < 0.5 check. Heads on true, Tails on false. The expected ratio over many flips is 50:50.
Bulk count up to 1000
Flips ranges from 1 to 1000. Each flip is independent; runs of the same outcome are normal and expected.
Plain word output
Output is the literal words Heads and Tails, capitalised, one per line. Easy to count, paste, and grep.
Independent draws
Each flip is independent of the previous one. There is no streak avoidance and no rebalancing toward 50:50 on short runs.
Browser-only
Computed via Math.random(). No upload, no log.
Worked example
Ten flips at default Flips 10. Expect runs of the same outcome; over many flips the ratio settles toward 50/50.
Flips: 10
Heads Tails Tails Heads Tails Heads Heads Tails Heads Tails
Settings reference
| Option | Effect on output |
|---|---|
| Flips | How many flips to emit. Default 10, minimum 1, maximum 1000. One per line. |
| Outcomes | Always two: Heads or Tails, with equal probability. |
| Output format | Capitalised English word, one per line. |
| Independence | Each flip is independent of the rest. |
| Random source | Math.random(). |