Common ranges
- 1 to 10 or 1 to 100: guessing games, picking a question number, "think of a number".
- 1 to 6: a single dice roll (the dice roller shows real dice and handles several at once).
- 1 to the number of people: give everyone a number, then generate one to pick a person.
- Raffle tickets: set the first and last ticket number, tick "No repeats", and ask for as many numbers as you have prizes. The raffle and lottery page labels them 1st, 2nd and 3rd prize for you.
"No repeats" explained
With No repeats ticked, each number can only appear once in a batch, like drawing numbered balls out of a bag without putting them back. Untick it for independent draws, like rolling a die several times, where the same number can come up again. With repeats off, you can't ask for more numbers than the range holds (10 numbers from 1–5 is impossible), and the tool tells you if you try.
How random is it?
Numbers come from crypto.getRandomValues, your browser's cryptographically secure generator, using rejection sampling, so every number in the range is exactly equally likely. Many simple generators use Math.random() with rounding, which can make the end numbers slightly less likely. This one doesn't. Negative numbers work too.