Random number generator
Set a minimum and maximum, choose how many numbers, and press Generate. Both ends of the range can come up, and every number has the same chance.
How it’s fair
Numbers come from crypto.getRandomValues with rejection sampling: the few random values that would make some numbers more likely than others are thrown away and drawn again. From 1 to 100, each number has exactly a 1 in 100 chance.
With No repeats on, numbers are drawn like balls from a lottery drum: each number can come out once, and every set of numbers is equally likely. Ranges wider than about 4.3 billion use a 53-bit draw, so they stay just as even.
Common questions
- Are the min and max included?
- Yes. A range of 1 to 100 can give 1, 100 or any whole number in between, each with the same 1 in 100 chance.
- What does No repeats do?
- Each number can appear only once in a result, like drawing numbered balls without putting them back. You can’t ask for more numbers than the range holds; turn No repeats off to allow duplicates.
- Can I use it to draw raffle winners?
- Yes. Give each ticket a number, set the range to match, and draw as many winners as you need with No repeats on. Decide the rules before you draw.
- Can I use negative or very large numbers?
- Yes. Min and max can be any whole numbers from -1,000,000,000,000,000 to 1,000,000,000,000,000, and you can draw up to 1,000 numbers at once.
More random pickers
Spin the wheelType entries, spin, and a fair wheel picks a winner.
Random team generatorSplit a list of names into balanced teams, by team count or team size.
Random name pickerDraw one or several names, with a no-repeat mode for classrooms.
Dice rollerRoll up to 10 dice: d4, d6, d8, d10, d12 or d20, with the total.
Coin flipHeads or tails, with a running tally and streaks.
How the randomness worksThe generator, the rejection step and the shuffle, explained.