Picking a number between 1 and 10, 1 and 100, or any range
Set the lowest and highest number and press Generate. Both ends are included, so 1 to 10 can give 1 or 10, and every number in the range has the same chance: 1 in 10 for 1–10, 1 in 100 for 1–100. The range buttons under the tool open the most common ones, such as 1–6 for a die or 1–3 for a quick three-way choice.
The range can start anywhere, including at 0 or below zero. 0–9 gives a single random digit, and −10 to 10 gives 21 possible results, because zero counts too.
Drawing several numbers with no repeats
With “No repeats” ticked, the tool works like drawing numbered balls from a bag without putting them back. Ask for 5 numbers from 1–50 and you get five different numbers; ask for all 50 and you get every number from 1 to 50 in a random order, which is a quick way to shuffle a list, set a speaking order or seat people at random.
You cannot draw more numbers than the range holds without repeats: 1–40 has only 40. Untick the option when repeats are fine, for example to simulate 20 separate dice rolls.
Why repeats and streaks are normal
People expect random numbers to look spread out, but real randomness clumps. Draw 10 numbers from 1–10 with repeats allowed and the chance that at least two match is about 99.96%; getting ten different numbers happens only about 4 times in 10,000 tries. A run like 7, 7, 3 is not a sign that something is broken.
This is the same effect as the birthday problem: in a group of just 23 people, two share a birthday more often than not.
How the numbers are generated
Each number comes from crypto.getRandomValues, the secure random source built into your browser, the same one used to create encryption keys. It is not seeded by the time of day, so draws cannot be predicted or repeated.
A common mistake in simple generators is to take a big random number and use the remainder after dividing by the range size. Because 4,294,967,296 does not divide evenly by 6, that makes some results slightly more likely. This tool throws away the few values that would cause that bias and draws again, so every number in your range is exactly equally likely.
Running a fair raffle or giveaway
- Number the entries from 1 upwards, in an order fixed before the draw, such as ticket numbers or the order of comments.
- Say in advance how many winners you will draw and that repeats are off.
- Record your screen or draw live, so people can see the range and the result.
- If a winner does not reply, draw again with the same range rather than picking the next person on the list yourself.