Random number generator

Pick one random number or thousands, in any range, with or without repeats, or switch to dice and coin flips. Every result is fair and comes from your browser's secure random generator.

  • 100% free
  • Runs in your browser
  • No uploads
Pick
Order

Result

Set the range and press Generate.

How to pick random numbers

  1. Set the range. Type the smallest and largest number allowed. Both are included, so 1 to 6 can give 1 or 6.
  2. Choose how many and the format. Pick up to 10,000 at once, whole numbers or up to 6 decimal places, and the order to show them in.
  3. Decide on repeats. Tick No repeats for draws where each number can only come up once, such as lottery numbers or picking winners.
  4. Press Generate. Copy the results one per line or separated by commas. Your last 10 results are listed until you leave the page.

Ways to use it

You wantSettings
Lottery numbers (6 from 49)1 to 49, 6 numbers, no repeats, low to high
Pick 3 winners from 250 entries1 to 250, 3 numbers, no repeats
A random PIN0 to 9, 4 numbers, repeats allowed
A random percentage0 to 100, 1 number, 1 decimal place
Shuffle the order of 30 students1 to 30, 30 numbers, no repeats, as drawn

Dice and coin flips

Switch to Dice to roll one to six ordinary six-sided dice and see each face and the total, handy for board games when the dice have gone missing. Two dice give a total from 2 to 12, with 7 the most common at one chance in six.

Coin flips settle a decision, or show how streaky chance is: flip 20 coins and runs of four or five heads in a row turn up more often than most people expect. Each flip is independent, so after five heads the next flip is still a 50 / 50 chance.

Frequently asked questions

Are these numbers really random?

They come from your browser's cryptographically secure random number generator (crypto.getRandomValues), which draws on randomness collected by your operating system. That's the same source used for encryption keys, and far less predictable than the Math.random function most simple generators use.

Is every number equally likely?

Yes. Turning a random number into a range with a simple remainder favours some results slightly; this generator throws away the values that would cause that and draws again. With repeats switched off, every possible set of numbers is equally likely too.

Can I use it for a raffle or prize draw?

Yes. Number the entries, set the range from 1 to the number of entries, tick No repeats and set How many to the number of winners. For a public draw, share your screen while you press Generate. Check your local rules: some lotteries and official draws must use certified equipment.

Why do I get an error when I ask for unique numbers?

If repeats are off, the range must hold at least as many numbers as you ask for. From 1 to 10 there are only 10 whole numbers, so 11 unique picks are impossible. Widen the range, add decimal places, or allow repeats.

How do decimal places work?

With 2 decimal places, the generator picks evenly from 0.00, 0.01, 0.02 and so on up to the maximum, and always shows exactly two places (1.50, not 1.5). Both the minimum and the maximum can be picked.