Skip to content
Advanced Calculator logo

Random Number Generator

Pick a random number between any two limits, or up to 1,000 at once. Choose whole numbers or decimals, allow or forbid repeats, and sort the results — all generated privately in your browser.

Range and options

Up to 1,000 at once.

Type

Turn off to draw each value at most once, like pulling names from a hat.

Random number
Press Generate to draw
—

Drawn with your browser's cryptographic random generator. Nothing is sent anywhere.

How to use this generator

  1. Set the lower and upper limits, or tap one of the common ranges.
  2. Choose how many numbers you want and whether they should be whole numbers or decimals.
  3. Turn off repeats if every number must be different.
  4. Press Generate. Press it again for a new draw, and use Copy to paste the results elsewhere.

How the numbers are chosen

Each draw takes 53 random bits from the Web Crypto API and turns them into a fraction between 0 and 1. That fraction picks one of the possible values in your range, with every value given exactly the same chance.

When repeats are off, the generator shuffles the whole range with the Fisher–Yates method and takes the first few values. It only ever touches the positions it needs, so drawing 1,000 unique numbers from a range of a trillion is instant.

Ideas

  • Roll a die — 1 to 6, one number. For two dice, ask for two with repeats on.
  • Pick raffle winners — 1 to the number of tickets, three numbers, repeats off.
  • Choose lottery numbers — 1 to 49, six numbers, repeats off, smallest first.
  • Random sample — row numbers from a spreadsheet, repeats off.

Frequently asked questions