Random Number Generator
Generate secure random numbers in any range
About the Random Number Generator
This random number generator picks numbers from a range you set, one at a time or many at once, with duplicates allowed or excluded. Unique mode makes it usable for draws and sampling where the same number must not come up twice.
A random number generator settles anything that needs an impartial pick: a prize draw, choosing who goes first, sampling rows from a dataset, or generating test values. Set the minimum and maximum and generate as many as you need.
The duplicates setting is what makes it fit different jobs. With duplicates allowed each pick is independent, like rolling a die repeatedly. With unique mode on, numbers are drawn without replacement — the right behaviour for a raffle or for picking ten distinct rows out of a thousand.
Results can be sorted for readability. Generation uses the browser's built-in randomness and nothing is transmitted, so results are not logged anywhere — though for cryptographic keys or passwords use the password generator, which is built for that purpose.
How to use the Random Number Generator
- Set the range. Enter the minimum and maximum values.
- Choose how many. Pick a single number or a batch.
- Set duplicate handling. Allow repeats, or require every number to be unique.
- Generate. Produce the numbers and sort them if you want them in order.
Random Number Generator features
- Numbers drawn with the browser's cryptographic random source
- Any minimum and maximum you set
- Up to 10,000 numbers at once
- Unique mode, so no number repeats
- Sorted or shuffled output
- Sum, average and range of the draw
- Presets for dice, a coin, a 6/49 lottery pick and PINs
- The last five draws from this visit
Frequently asked questions
How random are the numbers?
They come from the browser's cryptographic random source rather than the ordinary Math.random generator, so the values are not predictable from previous output. Draws are also range-corrected, meaning no value in the range is even slightly more likely than another.
What is unique mode for?
Draws and sampling, where the same number must not come up twice — a raffle, a lottery pick or choosing rows from a dataset. If you ask for more unique numbers than the range holds, you get the whole range instead.
Should I use this to run a real prize draw?
For an informal one, yes. For anything with legal or financial consequences, use a process you can audit and evidence afterwards — the issue is not the quality of the numbers but being able to show how the result was produced.
Why does the output default to sorted?
Because a sorted list is easier to check against, which is what you normally want for a lottery-style pick. Turn sorting off when the order itself is the result, such as assigning a running order.
Are the numbers generated on a server?
No. Everything happens in your browser, so no draw is transmitted or recorded anywhere.