How to use the random number generator
- Set the minimum and maximum. Both numbers are included, so 1 to 100 can return 1 or 100.
- Choose how many numbers you want, up to 1,000.
- Tick "No repeats" for draws where each number can only come up once, such as raffle tickets or lottery-style picks.
- Press Generate again for a fresh draw.
Is it truly random?
The numbers come from your browser's cryptographic random number generator (crypto.getRandomValues), which is designed to be unpredictable, rather than the basic Math.random. The generator also avoids "modulo bias", so every number in your range has exactly the same chance. The draw happens on your device and isn't stored or sent anywhere.
Picking a winner from a list
For a giveaway, paste one name or entry per line into the list box. The tool shuffles the list fairly (a Fisher–Yates shuffle) and shows the winner plus the full shuffled order, which is handy for runners-up, presentation order or splitting people into teams. Record your screen if you need to show the draw was fair.
Ideas for using random numbers
- Raffles and giveaways: number the entries and draw with no repeats.
- Dice and games: 1 to 6 for a die, 1 to 20 for a d20, 0 to 1 for a coin flip.
- Lottery numbers: for example 6 numbers from 1 to 49 with no repeats and sorted.
- Sampling: choose random rows, customers or invoices to check for an audit or survey.
- Classrooms: pick a student to answer or a random order for presentations.
The odds
For a single number from a range, the chance of any particular number is 1 divided by the size of the range: 1 in 100 for 1–100. The chance of matching all 6 numbers drawn from 1–49 is 1 in 13,983,816.
Frequently asked questions
Are the minimum and maximum included?
Yes. A range of 1 to 10 can return any whole number from 1 to 10, including both ends.
Can I generate random numbers without repeats?
Yes. Tick 'No repeats' and every number in the result will be different. You can't ask for more unique numbers than there are in the range.
Can I use this for a giveaway?
Yes. Number your entries and draw a number, or paste the names into the list box and the tool picks a winner at random.
Can it generate negative numbers?
Yes. Enter a negative minimum, such as −50 to 50.
How do I flip a coin or roll a die?
Use 1 to 2 for a coin (1 = heads, 2 = tails) and 1 to 6 for a die. Set 'How many' to roll several dice at once and untick 'No repeats'.
Last updated November 2026