Random number generator

Pick random whole numbers in any range, one at a time or many at once, with or without repeats.

Repeats
Order

A random number from 1 to 100

49

How it works

  1. Set the lowest and highest number.
  2. Choose how many and whether numbers may repeat.
  3. Press Generate again for a fresh draw.

Questions

Is it truly random?

Each draw is seeded from your browser's cryptographic random source, the same one used for security keys, so results cannot be predicted. It is fine for games, raffles and classroom picks.

How do I pick a winner for a giveaway?

Number the entries, set the range from 1 to the number of entries, and draw one. Take a screenshot of the result to share.

Can I get decimal numbers?

This generator gives whole numbers. For a decimal between 0 and 1 to two places, draw from 0 to 100 and divide by 100.

Are the numbers stored?

No. They are made in your browser and never sent anywhere.

How the numbers are picked

Each time you press Generate again, a fresh seed comes from your browser's cryptographic random source (crypto.getRandomValues), and every number in the range is then equally likely. With repeats turned off, a number that has already been drawn is skipped, as when you pull tickets out of a hat.

The range includes both ends: 1 to 100 can give 1 and 100.

Uses

  • Picking a giveaway winner from numbered entries.
  • Choosing a student, a team order or a seat at random.
  • Lottery-style picks: 6 numbers from 1 to 49 with no repeats.
  • Rolling dice: 1 to 6, with repeats allowed, as many as you need.
  • Sampling: picking 20 rows out of 500 to check by hand.

Fair draws in public

For a giveaway, announce the range and the time of the draw first, make the draw on screen, and share a screenshot. Since every page load uses a new seed, nobody, including us, can know the result in advance.