Random Number Generator
Generate random numbers in a range, with or without repeats, in your browser.
Runs in your browser — nothing is sent or saved.
How to generate a random number
- Set the lowest and highest numbers.
- Choose how many you want.
- Tick "No repeats" if each number must be different.
- Press Generate, then Copy to take the numbers.
What the tool does
This random number generator picks whole numbers in the range you set, including both ends. Ask for one number to get a single pick, or ask for many. With "No repeats" on, it draws each number only once, like pulling names from a hat. It is handy to pick a random number for a draw, a game, or a sample.
Where the randomness comes from
The numbers come from crypto.getRandomValues, the browser's secure random source, not the
weaker everyday Math.random. Every number in the range is equally likely, with no bias toward
the ends or the middle. Because the code runs in your browser, you can check this yourself.
Fair picks with no repeats
When you turn on "No repeats" and ask for as many numbers as the range holds, you get every number once in a random order, which is a quick way to shuffle a list of positions. If you ask for more than the range can give, the tool trims the count to fit.
FAQ
How do I get a random number between two values?
Set the lowest and highest numbers and press Generate. The tool returns a random number between them, including both ends.
Can I generate several numbers at once?
Yes. Set "How many" to any count. Use "No repeats" if you need them all different, like a number generator for a raffle.
Is it truly random?
It uses the browser's secure random source, which is the right tool for fair picks. It is far better than a simple Math.random based rng.
Can both the lowest and highest number come up?
Yes. The range includes both ends, so the smallest and largest values can both appear.
Are my numbers private?
Yes. Everything runs in your browser and nothing is saved.