Random Number Generator 1-2
Generate a random integer from 1 to 2, with both ends included.
This page returns integers from 1 to 2 — each side has exactly a 50% chance. The range is fixed so you can generate again without re-entering the bounds.
Typical use: settling a two-way decision — heads or tails, split or steal, yes or no. If you need a different range, the fields above are editable; the URL stays on this page and nothing is submitted anywhere.
How to use it
- Press generate — the range is already set to 1-2.
- Turn on no-repeats if you are drawing several winners from the same set.
- Copy the result, or keep generating; each result is independent.
Why the range stops at 2
Two outcomes is the smallest range worth calling a random pick, and it is the fairest tie-breaker there is. With 2 possible values, the chance of any specific number coming up is each side has exactly a 50% chance.
Generating with a narrow range is not the same as generating a wide range and rejecting out-of-range values. Filtering like that biases the result towards whatever is left; this tool draws directly from the range you set, using rejection sampling on the raw random bits.
Reviewed 2026-10-21. This tool runs entirely in your browser — no server, no account, and nothing you generate is stored.
Frequently asked questions
Is this the same as flipping a coin?
Statistically yes — both give two equally likely outcomes. If you want the visual, the coin flip tool animates it; this one just returns the number, which is faster if you are generating repeatedly.
Is 1 or 2 more likely than the middle values?
No. Each of the 2 values has an identical probability. If you generate a few hundred results, the counts should converge towards equal — small samples always look lumpy.
Can I generate more than one number at once?
Yes. Set the count above; leave no-repeats off if duplicates are acceptable, turn it on if you are drawing distinct winners.
Related tools
More from Random numbers.