Random Number Generator
Generate random numbers between any two values, with or without repeats.
All calculations happen locally in your browser — nothing is uploaded, stored or tracked.
Set the range
Minimum and maximum values.
Choose options
Count, decimals, uniqueness and sorting.
Generate
Results appear in a copy-friendly list.
What Is a Random Number Generator?
A random number generator produces numbers from a range you choose. It is used for lottery-style picks, classroom sampling, assigning groups, testing data and any time you need an unbiased choice.
The generator uses the browser's cryptographic random source when available (crypto.getRandomValues), which is far stronger than the basic Math.random for sensitive uses. You can generate up to 1,000 numbers, require unique values, and sort the output.
How It Works
Each number is drawn independently from a uniform distribution across the range. If uniqueness is enabled, the generator retries until all numbers differ — which is automatically limited when the range is smaller than the requested count.
Your data never leaves your device.
Every calculation on this site runs in your browser using vanilla JavaScript. Nothing is uploaded, stored or tracked.
- 100% local, client-side calculations
- No data stored on any server
- No tracking, no analytics, no ads scripts
- Works offline once loaded
Frequently Asked Questions
Can I generate random numbers without repeats?
Yes — tick "unique numbers". Note that a range must have at least as many possible values as the count you request.
How random is this generator?
It uses the browser's cryptographic random generator, which is suitable for any non-security use and far better than typical pseudo-random generators.
Can I generate lottery numbers?
Yes — set 1–49 (or your lottery's range), request the draw count with uniqueness enabled and sort ascending.
What is the maximum count?
Up to 1,000 numbers per generation.
Can I include decimals?
Yes — choose 1 to 3 decimal places in the decimals option.