Everyday Tools
Random Number Generator
Pick a range, choose how many numbers you need, and generate them at random — with or without repeats.
Calculation inputs
Set the range and how many numbers you need, then generate.
Results
Generated numbers
—
Numbers generated
0
Average
—
- Range
- 1 to 100
- Possible values in range
- 100
- Duplicates
- Allowed
- Lowest drawn
- —
- Highest drawn
- —
- Sum
- —
About this calculator
This tool generates one or many random whole numbers within a range you set, with the option to allow or block repeated values. It is used for raffles, sampling, games, and quick decision-making.
How it works
- Each number is drawn from the inclusive range between the minimum and maximum
- With duplicates off, drawn values are removed from the pool so every result is unique
- Values come from the browser's secure random generator
Notes and assumptions
Turning duplicates off needs a range at least as large as the count you ask for.
Results are generated in your browser and are not stored anywhere.
How it works in plain English
Each number is drawn uniformly from the inclusive range between the minimum and maximum you enter, meaning every whole number in that range has an equal chance of being picked on any given draw. The generator uses your browser's cryptographically secure random number source when available, falling back to a standard random function otherwise.
When duplicates are allowed, each draw is independent, so the same number can appear more than once, just as rolling a die multiple times can land on the same face repeatedly. When duplicates are turned off, each number drawn is removed from the pool of possibilities before the next draw, guaranteeing a set of unique results.
Because unique draws pull from a shrinking pool, the count you request cannot exceed the number of possible values in your chosen range. Asking for 10 unique numbers between 1 and 5, for instance, is impossible since there are only 5 distinct values available.
Worked example
Setting the range from 1 to 100 and requesting 5 numbers with duplicates allowed might produce 47, 12, 89, 12, and 63 — note 12 appearing twice, which is possible under this setting. Turning duplicates off and generating again from the same range might instead produce 8, 91, 34, 55, and 2, five distinct values with no repeats. The average of that unique set is (8+91+34+55+2)/5 = 38, giving a quick sense of where the draw landed within the range. That average of 38 sits below the range's midpoint of 50.5, which is simply a feature of this particular draw rather than a sign of bias — repeating the draw many times would produce averages that cluster around 50.5 over the long run. For a raffle with 100 tickets, this same unique-draw setting could be used to pick 5 distinct winning numbers without any of them being drawn twice.
Frequently asked questions
How random are the numbers this tool produces?
When your browser supports it, the generator uses a cryptographically secure random source, which produces statistically unpredictable results suitable for most everyday purposes like raffles or games. It is not intended for high-stakes cryptographic use, but for typical random selection needs it performs reliably.
Why can't I generate more unique numbers than the size of my range?
Unique, non-repeating draws pull from a shrinking pool of remaining values, so the pool runs out once every number in the range has been used. If you need 20 unique numbers, your range must contain at least 20 distinct whole numbers, or you'll need to allow duplicates instead.
Can I generate negative numbers or decimals?
The generator supports negative numbers as long as your minimum is set below zero, since it works with whole numbers across any range you define. It does not produce decimal or fractional values — every result is a whole number between your chosen minimum and maximum.
Are the results saved or shared anywhere?
No. Numbers are generated locally in your browser each time you click generate, and nothing is transmitted to a server or stored after you leave the page. If you want to keep a set of results, use the copy button to save them elsewhere yourself.
Why did I get the same set of numbers twice in a row?
With a small range or count, repeated random draws can coincidentally produce the same or very similar sets purely by chance, especially with duplicates allowed. This is a normal feature of randomness rather than a flaw — over many draws, the results will vary and spread across the full range.