Random Number Generator

Pick one or many random whole numbers within a range you choose, with options for uniqueness and sorting.

Random Number Generator

🔒 Nothing you enter is sent anywhere or stored. All processing happens in your browser.

How it works

Set a minimum and maximum and choose how many numbers you want. Each result is a whole number picked uniformly at random from your range, so every value between the bounds is equally likely. If you enter the minimum and maximum the wrong way round, the tool swaps them for you.

Leave Allow duplicates ticked for independent draws (like rolling the same die repeatedly). Untick it to draw without replacement, so every number in the output is unique — ideal for lottery-style picks or assigning distinct slots. In that mode the tool won't let you request more numbers than the range can supply. Turn on Sort results to receive the numbers in ascending order.

Results appear as a comma-separated list you can copy with one click. Randomness comes from your browser's built-in generator and everything runs locally, so no draw is recorded or predictable to anyone else. For high-stakes or cryptographic use, prefer a dedicated secure generator.

Examples

Pick a raffle winner → 1 to 250, one number → the winning ticket.
Six unique lottery numbers → 1 to 49, count 6, duplicates off, sorted.
Random test data → 0 to 1000, count 20 → a quick sample set.

Frequently asked questions

Are the numbers truly random?
They use your browser's built-in pseudo-random generator, which is more than good enough for games, draws and sampling. For cryptographic keys use a dedicated secure tool.
What does 'allow duplicates' do?
When ticked, each number is drawn independently so repeats are possible. When unticked, numbers are drawn without replacement, so every result is unique.
Why can't I get 10 unique numbers from 1 to 5?
Without duplicates there are only as many unique values as the range contains. Widen the range, lower the count, or allow duplicates.
Are the bounds included?
Yes. Both the minimum and the maximum are possible results — the range is inclusive at both ends.
Can it produce decimals?
This tool generates whole numbers only. For fractional values, multiply the range up and divide the results yourself.