How to use the random number generator
- Enter the lowest and highest number you want (both are included). Negative numbers work too.
- Enter how many numbers you need — from 1 up to 10,000.
- Tick No duplicates if every number may appear only once, for example for a raffle or a lottery draw.
- Optionally sort the result from low to high or high to low, then press Generate.
- Use Copy to paste the numbers into a spreadsheet, chat or document, separated by commas, spaces or new lines.
The quick buttons fill in common settings: 1–10, 1–100, a six-sided die and a 6-out-of-49 lottery draw.
How random are the numbers?
The numbers come from your browser's cryptographic random number generator (crypto.getRandomValues), the same source browsers use for security keys — not the simpler Math.random. The generator also avoids the "modulo bias" that makes some numbers slightly more likely in naive implementations: random values that would skew the distribution are discarded and drawn again. Every number in your range therefore has exactly the same chance.
Everything runs locally in your browser. Nothing is sent to a server, so nobody — including us — can see or influence the result.
Typical uses
- Raffles and giveaways: number the entries, generate one number (or several without duplicates) and announce the winners.
- Games: roll a die, pick who goes first, or choose a random card position.
- Teaching and research: pick random students, survey participants or sample rows from a list.
- Lottery numbers: generate a set of unique numbers in the range your lottery uses. Every combination is equally likely, so no generator can improve your odds.
Duplicates and limits
Without the "No duplicates" option each number is drawn independently, so the same value can come up more than once — just like rolling a die several times. With the option on, you cannot ask for more numbers than the range contains: 1 to 10 allows at most 10 unique numbers. Whole numbers up to about nine quadrillion (2⁵³) are supported.
Frequently asked questions
Are the numbers truly random?
They come from the browser's cryptographically secure random number generator and are drawn without modulo bias, so every number in the range has exactly the same probability. They are unpredictable for all practical purposes.
How do I generate numbers without repeats?
Tick "No duplicates". The tool then draws each number at most once. You can request at most as many numbers as the range contains, for example 10 for the range 1 to 10.
Can I use it for a raffle or giveaway?
Yes. Number the entries, set the range from 1 to the number of entries and generate as many unique numbers as there are prizes. The draw happens in your browser and nothing is stored.
Can this generator help me win the lottery?
No. Every combination of lottery numbers has the same chance, whether you pick it yourself or let a generator choose. The tool simply saves you from picking numbers by hand.
Last updated: