Random Number Generator

Pick random numbers in any range, with or without repeats, or draw a winner from a list of names.

Random number

–

Pick from a list

Winner
–
Shuffled order
–
Embed this calculator on your website (free)

Paste this code into your website or blog. Free to use, please keep the credit link.

How to use the random number generator

  1. Set the minimum and maximum. Both numbers are included, so 1 to 100 can return 1 or 100.
  2. Choose how many numbers you want, up to 1,000.
  3. Tick "No repeats" for draws where each number can only come up once, such as raffle tickets or lottery-style picks.
  4. 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

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