DailyDeskTools home

Random Number Generator

Pick random numbers in any range, with or without repeats, using secure randomness.

  • Free forever
  • No signup
  • Runs on your device
Random Number GeneratorRuns locally · nothing uploaded
Loading tool…

How to use the Random Number Generator

  1. 1Enter the lowest and highest numbers you want.
  2. 2Choose how many numbers to pick.
  3. 3Leave No repeats on for raffles and draws, or turn it off to allow duplicates.
  4. 4Press Generate, then copy the results.

Fair and unpredictable

Numbers are drawn with your browser's cryptographic random number generator, the same source used for security keys. The tool also avoids a subtle bias found in simple random functions, so every number in the range has exactly the same chance.

Both the minimum and maximum are included. Picking from 1 to 6 works like rolling a die.

With or without repeats

  • No repeats draws each number at most once, like pulling numbered tickets from a hat. Use it for raffles, seating plans and random order.
  • Repeats allowed treats every pick independently, like rolling a die several times.

Ideas

  • Choose a winner by numbering entries and picking one.
  • Split a class into random groups.
  • Pick lottery-style numbers for fun. No method can predict real lottery draws.

Common ranges

Use Min Max Count
Coin flip (1 = heads, 2 = tails) 1 2 1
Six-sided die 1 6 1
20-sided die 1 20 1
Percentage roll 1 100 1
Raffle with 240 tickets, 3 winners 1 240 3, No repeats on

Why the method matters

Many simple generators take a random value and use a remainder to fit it into the range. That makes some numbers slightly more likely. This tool asks the browser for random bits and discards any value that would cause that skew, then tries again. Every number in the range has the same chance.

Worked probabilities

  • One pick from 1 to 100: each number has a 1% chance.
  • Three dice rolled with repeats allowed: 6 × 6 × 6 = 216 equally likely outcomes, and the chance of at least one 6 is 1 − (5/6)³, or 42.1%.
  • Three winners from 50 entries with No repeats: 19,600 possible groups of winners.

Common mistakes

  • Leaving No repeats off in a raffle. The same ticket could win twice.
  • Expecting patterns to even out. A number that has not appeared yet is not "due". Each draw is independent when repeats are allowed.
  • Forgetting both ends count. For 1 to 10, ask for 10, not 9.

Work out odds with the probability calculator. Need a secret rather than a number? Use the password generator or the UUID generator.

Frequently asked questions

Is this truly random?

It uses the browser's cryptographically secure generator, which is unpredictable for all practical purposes and suitable for games, draws and sampling.

Are the minimum and maximum included?

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

How many numbers can I generate?

Up to 10,000 at once. With No repeats on, you cannot ask for more numbers than the range contains.

How do I pick a random winner from a list?

Number the entries from 1 to the total, set that as the range, ask for 1 number (or more winners with No repeats on), and press Generate.

Why did I get the same number twice?

With No repeats off, every pick is independent, so duplicates are normal. Turn No repeats on to get each number only once.

Last updated · By the DailyDeskTools team

Built and written with AI assistance, then tested by hand by our team. How we make our tools