How to use the random number generator
Set the lowest and highest number you want, choose how many results you need, and press Generate. Both ends of the range are included, so 1 to 6 works like a die. Turn on No repeats to draw unique numbers, and Sort results to list them in order. Need decimals? Pick 1–3 decimal places.
The quick buttons set up common draws in one tap: 1 to 10, 1 to 100, a six-sided die, or a 6-from-49 lottery draw with no repeats.
Fair by design
Many online generators use Math.random(), which is fine for games but not designed to be unpredictable.
This tool uses cryptographically secure randomness and rejection sampling, which avoids the subtle
bias you get from the common random % range shortcut.
Ideas for the classroom
- Cold-calling: number your roster and pick a student fairly.
- Math practice: generate random numbers for mental-math drills or probability experiments.
- Seating and order: generate 1–30 with no repeats for a random presentation order.
- Teams: splitting the class? The random group generator does it in one step.
Curious whether your number is prime? Paste it into the prime number checker.
Frequently asked questions
Is this random number generator truly random?
It uses your browser’s cryptographically secure generator (crypto.getRandomValues) with rejection sampling, so every number in your range is equally likely. That is far better than the Math.random() used by many sites.
How do I generate numbers without repeats?
Tick “No repeats”. Each number can then appear only once, like drawing tickets from a hat. The count can’t be larger than the size of your range.
How do I pick a random student?
Number your class list, set the range from 1 to the number of students, and generate one number. Or use the random group generator with group size 1 to shuffle everyone into a calling order.
Can I use it for a raffle or giveaway?
Yes. Set the range to your ticket numbers and the count to the number of winners, with “No repeats” on so nobody wins twice.
How do I pick numbers from 1 to 100 with no repeats?
Set Min to 1 and Max to 100, choose how many numbers you need, and turn on “No repeats”. You can draw up to all 100 numbers in a random order.
Can it generate decimal numbers?
Yes. Choose 1, 2 or 3 decimal places. Every value with that precision is equally likely — for example 0 to 1 with two decimals picks from 0.00, 0.01 … 1.00.
What is the largest range supported?
Any whole numbers between −9,007,199,254,740,991 and 9,007,199,254,740,991, and up to 10,000 results at a time.
Sources
- Crypto: getRandomValues() method — MDN Web Docs
- Fisher–Yates shuffle — Wikipedia
See how we build and test our tools in our editorial policy.