Random Number Generator

Pick random numbers in any range, with or without repeats, as whole numbers or decimals. Uses your browser’s secure random generator.

Runs in your browserNo sign-upWorks offline
Very strong118 bits of entropy
80
96
38
18
90

What the Random Number Generator does

The Random Number Generator picks one or many numbers between a lowest and highest value. You can ask for no repeats, which is ideal for lucky draws and choosing roll numbers, and for decimals up to six places. Numbers come from the browser’s cryptographic generator, so every value in the range is equally likely.

How to use it

  1. Enter the lowest and highest numbers, and how many you want.
  2. Choose decimal places, 0 for whole numbers.
  3. Tick No repeats for a draw where each number can come up only once, and Sort if you want them in order.
  4. Press Generate, then copy or download the list.

Example

To pick 5 winners from 100 entries numbered 1 to 100, set 1 to 100, 5 numbers, no repeats. You might get 98, 39, 59, 46 and 76; press Generate again for a new set. For a fair dice roll, use 1 to 6 with one number.

How fair is it?

Many simple generators use a method that slightly favours some numbers when the range does not divide evenly. This tool throws away the uneven remainder and draws again, so the chance of each number is exactly equal. It uses crypto.getRandomValues, the same source browsers use for security keys.

For no repeats, you cannot ask for more numbers than the range holds: 1 to 10 gives at most 10.

How many outcomes are there?

Drawing 6 different numbers from 1 to 49 can give 13,983,816 combinations, so each set has about a 1 in 14 million chance. To count outcomes like this, with or without order, use the Permutation and Combination Calculator.

Questions people ask

Can I use it for a lucky draw?

Yes. Number the entries, generate with no repeats, and record the result. Anyone can repeat the method.

Can I generate negative numbers?

Yes. Set the lowest number below zero, such as −50 to 50.

How many numbers can I make at once?

Up to 10,000. The first 500 are shown; copy or download for the rest.

Is anything stored or sent?

No. The numbers are made on your device and nothing is recorded, so nobody else can see or change a draw.

Related tools