Coin Flip

Virtual coin flips with a 50/50 split between Heads and Tails. Set Flips from 1 to 1000; the output panel fills with that many results, one per line. Useful for tie-breakers, casual decisions, or seeding a binary fixture column. For dice with custom sides see the dice roller.

Input
Line 1:1 LF cloud_done Saved locally
Result Coin Flip
0 lines 0 chars

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

  1. 1Open the tool. The input panel can be left empty.
  2. 2Set Flips in the option panel (default 10, maximum 1000).
  3. 3The output panel shows that many Heads/Tails results, one per line.
  4. 4Click Copy to grab the list.
  5. 5Click Download to save as a plain-text file.

Keyboard shortcuts

Drive TextResult without touching the mouse.

Shortcut Action
Ctrl FOpen the find & replace panel inside the input Plus
Ctrl ZUndo the last input change
Ctrl Shift ZRedo
Ctrl Shift EnterToggle fullscreen focus on the editor Plus
EscClose find & replace, or exit fullscreen
Ctrl KOpen the command palette to jump to any tool Plus
Ctrl SSave current workflow draft Plus
Ctrl PRun 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.

Input
Flips: 10
Output
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().

FAQ

Why am I getting a streak of Heads?
Streaks are normal in independent flips. With 100 flips, runs of 5 in a row are likely; runs of 7 in a row appear in maybe a third of all 100-flip batches. The generator does not de-streak.
Can I bias the coin?
Not in this tool. The split is fixed at 50/50. For a biased coin, use the random number generator with Min 1 and Max 100, and treat values 1-70 as Heads and 71-100 as Tails for a 70/30 split.
How do I count Heads vs Tails after the run?
Copy the output and paste into a tool like the word frequency counter to see the totals.
Is the random source good enough for a coin toss?
For casual or non-binding decisions, yes. For audited draws, use a system tool with a documented CSPRNG seed.
Is the output sent anywhere?
No. The flips happen in your browser. Nothing leaves the page.