Random Number Generator
Generate random integers in any range — pick the count, allow repeats or force unique numbers, and re-roll instantly.
How it works
each number = min + floor(random × (max − min + 1)), giving a whole number from min to max inclusive
Every number is drawn with an equal chance across the whole range, minimum and maximum included, using your browser’s random generator. Because this tool recomputes only when an input changes, editing any field — even bumping the count by one — produces a brand-new set rather than adding to the old one. Choose “unique numbers only” to avoid duplicates, such as for a raffle draw; if you ask for more unique numbers than the range holds, the count is trimmed to fit.
Worked example
Asking for 5 numbers between 1 and 100 with repeats allowed might give 7, 43, 43, 88, 12 — a duplicate is possible. Switch to unique and every number is different, and requesting 6 unique numbers between 1 and 5 is trimmed to 5, since only five values exist.
Frequently asked questions
Why did my numbers change when I edited a field?
The generator re-rolls whenever any input changes, because it recalculates the whole result. There is no “freeze” — write down or screenshot a set you want to keep before touching the inputs.
Is this truly random?
It uses your browser’s built-in pseudo-random generator, which is more than random enough for games, giveaways and picking a winner — but not for cryptography or security.
What does “unique numbers only” do?
It guarantees no value repeats in the set, like drawing numbered balls without replacement. If you request more unique numbers than the range contains, the count is capped to the number of available values.
Related calculators
This calculator is for educational purposes. Double-check important results before acting on them.