Free browser tool

Random Number Generator

Pick fair, unpredictable numbers in any range — choose how many and whether duplicates are allowed, generated securely in your browser.

Generated in your browser.Numbers are drawn with the Web Crypto API on your device — nothing is uploaded, logged or sent anywhere.

Quick answer

Set a minimum and maximum, choose how manynumbers you need, then press Generate. Leave duplicates on to allow repeats, or turn them off for a set of unique numbers — ideal for lottery lines or raffle draws. Both ends of the range are included.

What you can use it for

A random number generator is a quiet workhorse. Use it to pick lottery or lucky-dip numbers, draw a raffle or giveaway winnerfrom a numbered list, choose a random row in a spreadsheet, assign teams, seed a game, or sample data for a quick experiment. With duplicates switched off you get a set of distinct values — exactly what you want for tickets or positions — while leaving them on models independent draws like rolling the same die many times.

Why crypto randomness matters

Not all randomness is equal. Ordinary Math.random is fast but predictable and can show subtle bias, which is fine for a casual shuffle but not when fairness counts. This tool uses the Web Crypto API (crypto.getRandomValues) together with rejection sampling, which discards the rare values that would skew a range and so gives every number an equal chance. The result is a draw you can trust for competitions and picks.

Handling tricky settings gracefully

The generator checks your inputs before it runs. If the minimum is larger than the maximum, or you ask for more unique numbers than the range can possibly provide, it explains the problem in plain language and keeps the Generate button disabled until it is fixed — so you never get a confusing result or a frozen page. You can also sort the output in ascending order and copy the whole set to your clipboard in one click.

Frequently asked questions

How random are the numbers?+

Very. This generator uses crypto.getRandomValues, your browser's cryptographically secure random source, with rejection sampling to remove statistical bias. That is fairer than Math.random, which is not designed for unbiased draws.

Can I stop the same number appearing twice?+

Yes. Turn off 'Allow duplicates' to draw unique numbers only — perfect for lottery lines, raffle tickets or picking winners. If you ask for more unique numbers than the range can hold, the tool tells you instead of hanging.

What happens if the minimum is bigger than the maximum?+

The tool detects it and shows a clear message asking you to fix the range, and the Generate button stays disabled until the numbers make sense. The minimum and maximum are both included in the range.

Can I generate many numbers at once?+

Yes, up to 10,000 in a single click. You can also sort the results in ascending order and copy them all to your clipboard as a comma-separated list.

Are my numbers uploaded or stored?+

No. Every number is generated on your device in the browser. Nothing is uploaded, logged or sent anywhere, and the tool works offline.

More fun tools