1. Home
  2. Everyday Tools
  3. Random Number Generator

Random Number Generator

Generate one or many random numbers between any minimum and maximum, with options for unique numbers, decimals and sorting.

?

Runs locally in your browser. Your files and data are never uploaded or stored.

About the Random Number Generator

The Random Number Generator picks numbers fairly and unpredictably. Set any minimum and maximum, including negative numbers, and generate a single number or up to 10,000 at once. It uses the browser's cryptographically secure random source, which is far more unpredictable than the standard Math.random function.

Enable Unique to avoid repeats, which is perfect for lottery and raffle draws, assigning random seats or selecting survey participants. Set Decimals for random fractional values used in simulations and testing, and sort the results for easier reading. Teachers use it to call on students, game masters use it as a dice roller, and developers use it to create test data.

Settings for common situations

  • Roll a die: min 1, max 6, one number. For two dice, generate two numbers (repeats allowed).
  • Raffle with numbered tickets: min 1, max equal to the number of tickets sold, turn on Unique and generate as many numbers as there are prizes.
  • Lottery-style draw: for example 6 unique numbers from 1 to 49, sorted to make them easy to read.
  • Pick a random student: number your class list and generate one number between 1 and the class size.
  • Test data: 100 numbers between 1 and 10,000 for a spreadsheet, or decimals between 0 and 1 for a simulation.

Is it really random?

The numbers come from your browser's cryptographically secure random generator, the same kind of source used to create encryption keys. Every number in the range has the same chance, and earlier results do not affect the next ones.

Tip: when the result matters to other people, such as in a giveaway, announce the range and the rules before you generate, and share a screenshot of the result afterwards.

How to use the Random Number Generator

  1. Enter the minimum and maximum values.
  2. Choose how many numbers and how many decimal places.
  3. Tick Unique or Sort if needed.
  4. Click Generate.

Frequently asked questions

Is this truly random?

It uses crypto.getRandomValues, a cryptographically secure pseudo-random generator suitable even for security purposes, and every value in the range has an equal chance.

Are the minimum and maximum included?

Yes. Both ends of the range can be generated.

Can I use it for a giveaway?

Yes. Number your entries, set the range, enable Unique and generate as many winners as you need.