Random number generator

Generate random numbers between any two values. Pick one number or a whole list, with or without repeats, as whole numbers or with decimals.

Free and private. Everything runs in your browser, nothing is uploaded.

How it works

  1. Set the rangeEnter the smallest and the largest number.
  2. Choose the optionsHow many numbers, unique or not, sorted, decimals.
  3. GeneratePress Generate, Enter or the space bar, then copy the result.

Unbiased random numbers

Simple generators often use Math.random with multiplication and rounding, which can make some numbers slightly more likely than others. This generator draws from the secure random generator of your browser and rejects values that would cause a bias, so every number in the range has exactly the same chance.

Both the minimum and the maximum are included. With Unique on, no number appears twice; asking for more unique numbers than the range holds gives a clear message instead of a wrong result.

Lotteries, samples and games

Draw lottery style numbers, pick a random sample of rows to check in a spreadsheet, choose question numbers for a quiz or generate test data. Sorted output makes long lists easy to read, and Copy puts one number per line on your clipboard.

Frequently asked questions

Are the minimum and maximum included?

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

Can I get numbers without repeats?

Yes. Keep No repeats on. The count cannot be larger than the number of values in the range.

Can I generate decimal numbers?

Yes. Choose 1 to 4 decimal places; every value with that precision is equally likely.

How random are the numbers?

They come from crypto.getRandomValues, the generator browsers use for security, with bias removed.