130+ free tools. No sign-up. No hidden fees. Explore the toolkit

Random Number Generator

Pick truly random numbers in any range — for raffles, draws, games, or classroom picks. Choose how many numbers you want, allow or block duplicates, and sort the results.

When unchecked, every number in the result is different.

Sorting makes long lists easier to scan and compare.

Your Random Numbers

Save to Pinterest

How It Works

Every number this generator produces comes from your browser's built-in secure random source, crypto.getRandomValues() — the same kind of randomness used for security keys, not the weaker pseudo-random function most toy generators rely on. That matters when fairness counts: a raffle draw, a classroom pick, or a game where nobody should be able to guess the next number. Rejection sampling keeps the odds perfectly even, so every number in your range has exactly the same chance of appearing.

You set the range, how many numbers you want, and whether repeats are allowed. With duplicates off, the generator draws without replacement, so you will never see the same number twice — ideal for draws and lotteries. Turn sorting on and the results come back smallest first, which makes long lists much easier to scan and compare.

Worked Example

Set the minimum to 1, the maximum to 100, ask for 5 numbers, and leave duplicates off. One run produced 7, 23, 41, 58 and 90 — five different numbers, all inside the range. Ask for the same draw again and you get a completely different set, because every run is independent: the generator has no memory of previous results, so a number that just appeared is exactly as likely to appear again as any other.

How to Use This Tool

Enter the smallest and largest numbers you want, choose how many numbers to draw (up to 1,000), then decide whether duplicates are allowed and whether the results should be sorted. Click Generate Numbers and the results appear instantly, ready to copy. If you ask for more unique numbers than your range contains — say 20 different numbers between 1 and 10 — the tool tells you to widen the range or allow duplicates, instead of silently repeating numbers.

Tips and Practical Advice

For a fair draw, use duplicates off and a range that matches your entries exactly — numbers 1 to 50 for 50 raffle tickets, for example, so every ticket has the same chance. For dice-style rolls or simulations, allow duplicates instead: real dice do not remember what they just rolled. And when you need a quick decision, a 1-to-2 draw is a fair coin flip in disguise.

Last updated: