Random Number Generator

Generate one or many random numbers between any two values, with or without repeats.

How it works

Set the lowest and highest numbers you want, choose how many to draw and press Generate. Both limits are included, so 1 to 6 behaves like a die. With “No repeats” each number can appear only once, which is what you want for raffles, picking students or drawing lottery-style numbers.

The numbers come from your browser’s cryptographic random source (crypto.getRandomValues), the same one used to create secure keys. That is much less predictable than the ordinary random function many simple generators use, and every number in the range has an equal chance.

Ideas for using it

  • Giveaways: number your entries, then draw a winner between 1 and the number of entries.
  • Classrooms: pick who answers next without anyone feeling singled out.
  • Games: roll dice (1–6, or 1–20 for tabletop games) when you have none to hand.
  • Sampling: choose 50 random rows from a 2,000-row spreadsheet for a quality check.

Is “random” really random?

Computers cannot produce true randomness by themselves, but modern browsers gather unpredictable data from the operating system to seed their generator. For draws, games and everyday sampling this is entirely fair. For officially regulated lotteries, organisers use certified hardware devices.

Frequently asked questions

Are the minimum and maximum included?

Yes. A range of 1 to 10 can return both 1 and 10.

Why do I see the same number twice?

Only if "Allow repeats" is chosen. With repeats allowed, each draw is independent, so duplicates are normal, just as a die can roll a 6 twice in a row.

Can I pick a random name instead?

Number your list of names, generate a number in that range, and pick the matching name.

Last reviewed: