Generate random numbers in any range, with or without duplicates, using secure randomness.
How to use the Random Numbers
Set the minimum and maximum and how many numbers you want.
Choose whether duplicates are allowed and how to sort.
Click Generate and copy the numbers.
A random number generator that returns whole numbers in any range you set, optionally with no duplicates and optionally sorted, using the browser's secure randomness so the results are genuinely unpredictable.
Everything runs locally with nothing sent to a server, and each run produces a fresh set, since there is no fixed seed to reproduce.
You choose the minimum and maximum and how many numbers you want. The output can allow repeats, or be made unique, in which case the count is capped at the size of the range since you cannot draw more distinct numbers than exist in it.
The randomness comes from crypto.getRandomValues, the browser's cryptographically secure generator, rather than a simple pseudo-random function, so the numbers are not predictable from one another.
That makes it well suited to casual draws and decisions: picking a raffle or giveaway winner, choosing a random participant, rolling for a game, sampling rows for a spot check, or just breaking a tie.
For official lotteries and gambling, certified hardware random generators are legally required; this tool is for everyday, informal randomness rather than regulated draws.
Frequently asked questions
They use the browser's cryptographically secure random generator (crypto.getRandomValues), which is suitable for games, draws and decisions.
Yes. Turn off "allow duplicates" to get distinct numbers. The count is then capped at the size of the range.
It is great for casual draws and picking winners. For official lotteries, certified hardware generators are required.
Yes. You set the minimum and maximum, and the numbers are drawn within that range, inclusive of the bounds.
No. There is no fixed seed, so each run draws a fresh, independent set from the secure random generator.
Embed this tool
Add this tool to your own website. Copy the snippet below; it stays up to date automatically.
<iframe src="https://monu.tools/embed/en/random-number-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Related tools
Convert a time across the world's major time zones, with daylight saving handled automatically.
Solve proportional and inverse rule-of-three problems: if A corresponds to B, what does C correspond to?
Work out the tip and split the bill between any number of people, with optional rounding up.
Calculate your weighted grade average from German school grades (1 to 6) with custom weights.