1 to 10 or 1 to 100: guessing games and quick picks.
1 to 49, six numbers, no repeats: many national lotteries.
1 to the number of participants: raffle ticket draws.
Why the numbers are fair
Many simple generators use a shortcut that makes some numbers slightly more likely than others. This one uses rejection sampling: it discards the rare random values that would cause that bias, so every number in your range has precisely the same probability.
Frequently asked questions
How do I pick a random number between 1 and 10?
Set the minimum to 1 and the maximum to 10, then press Generate. Both ends are included, so 1 and 10 can both come up.
Can I generate numbers without repeats?
Yes. Keep "No repeats" ticked and every number in the result will be different, like drawing numbered balls from a bag. Untick it to allow the same number more than once.
How random are the numbers?
They come from your browser's cryptographic random number generator (the Web Crypto API), with a method that gives every number in the range exactly the same chance.
Can I use it for lottery numbers?
Yes. For example, set 1 to 69, five numbers, no repeats. Every combination is equally likely, so random picks win as often as any others.