Generators
Random Number Generator — Fair Numbers, Honestly Explained
Set a range, say how many numbers, decide whether repeats are allowed — and get them, with the sum and average worked out. For draws, games, classroom picks, sampling and settling arguments.
Last updated: November 2026 · Runs 100% in your browser — files never leave your device.
The honesty section: what 'random' means here
This generator uses your browser's built-in random function (Math.random), which produces pseudorandom numbers: they pass every practical fairness test — every value in your range is equally likely, draws do not influence each other — but they come from a deterministic algorithm seeded by your device, not from a physical random event. That is exactly right for games, draws among friends, classroom picks and sampling. It is not what you would use for cryptographic keys or a national lottery's official draw, and this page will not pretend otherwise. (Our password and PIN generators do use the browser's cryptographic generator, because there it matters.)
Unique mode, explained
With 'no repeats' ticked, numbers are drawn like balls from a bag — each value at most once — which is what raffles and lotteries need. Leave it unticked and repeats are allowed, like dice: rolling 4, 4, 4 is unlikely, not impossible, and a generator that never repeated would be the rigged one.
Worked uses, with settings
| Classroom pick (30 students) | Range 1–30, count 1, unique on |
|---|---|
| Raffle with 500 tickets | Range 1–500, count 3 (winner + 2 reserves), unique on |
| Dice substitute for a board game | Range 1–6, count 2, unique off |
| Random sample of survey rows | Range 1–(your row count), count = sample size, unique on |
| Settling 'pick a number' fairly | Agree the range aloud first, then generate once — the agreement is the fairness |
The reserves row deserves emphasis: draws that name backup winners in the same public draw never face the 'the winner didn't claim, now what' dispute. Generate the podium and the bench in one go, screenshot both, and the whole event is armoured.
Classroom gold: the number line laboratory
Teachers: this page is a probability laboratory that fits in a projector. Generate 10 numbers from 1–6 and tally them; then 100; then 1,000 (the count goes that high) — the class watches the distribution flatten toward fairness as the sample grows, which is the law of large numbers experienced instead of recited. Follow with the dishonest version for contrast: ask students to invent 20 'random' numbers and tally those — human randomness avoids repeats and extremes so reliably that the comparison teaches the lesson twice.
Frequently asked questions
Can I generate 1 to 1,000,000?
Any range works. With unique mode, the count cannot exceed the range size — the tool will tell you if you ask for the impossible.
Is this fair for a giveaway draw?
For community and classroom draws, yes — screenshot the settings with the result for transparency. For anything with legal or cash stakes, use an official, auditable draw process.
Why show sum and average?
Teachers, statisticians and game designers ask for them constantly; they are computed on the spot from your batch.