Skip to content

Random Number Generator

Pick random numbers in any range, roll dice or flip a coin using your browser's cryptographic random generator. Generate one number or thousands, allow or forbid duplicates, add decimals, sort the results, and copy them for raffles, games, sampling and testing.

Runs in your browserFreeNo sign-up

Processed on your device. Files and text stay in your browser and are not uploaded to our servers. How privacy works

How to use the random number generator

  1. Choose Numbers, Dice or Coin flip.
  2. For numbers, set the minimum, maximum, how many you need, decimal places, whether duplicates are allowed, and an optional sort order. For dice, pick the die type, count and modifier.
  3. Press Generate, Roll or Flip. Results appear with a sum, lowest and highest for numbers, or a total for dice.
  4. Copy or download the results, or press the button again for a new draw.

Features

  • Integer or decimal numbers (up to 6 places) in any range, including negatives
  • Up to 10,000 numbers per draw, with or without duplicates
  • Optional ascending or descending sort
  • d4, d6, d8, d10, d12, d20 and d100 dice, up to 100 at a time, with a modifier
  • Coin flips from 1 to 1,000 with heads/tails tallies
  • Cryptographically random, unbiased draws using rejection sampling

Fair draws

Every value comes from crypto.getRandomValues, the same source browsers use for encryption keys. Numbers are chosen with rejection sampling rather than the usual modulo trick, so each value in the range has exactly the same probability; this matters when the range size doesn't divide evenly into the generator's output. For a draw without duplicates the tool either shuffles the whole range (small ranges) or keeps drawing until it has enough distinct values (large ranges).

Typical uses

Picking raffle or giveaway winners from numbered entries (set the range to the number of entries and turn duplicates off), choosing a random sample of rows from a spreadsheet, generating test data, deciding turn order, rolling for tabletop games, or settling a decision with a coin.

Frequently asked questions

Are the numbers truly random?

They are cryptographically random, which is as close to true randomness as software gets: unpredictable and unbiased. They are not pseudo-random from a seed, so results cannot be reproduced later.

Why can't I generate 20 unique numbers between 1 and 10?

There are only ten distinct values in that range. Either allow duplicates or widen the range so at least as many unique values exist as you asked for; the error message tells you how many are available.

Can I pick a random winner from a list of names?

Number the names, generate one number between 1 and the number of entries, and read off the winner. For several winners, set how many you need and turn duplicates off.

How are dice totals calculated?

Each die is rolled independently with a value from 1 to its number of sides, the rolls are added, and the modifier (which can be negative) is applied to the sum.

Other tools people use alongside Random Number Generator.

You might also like

Something useful from another corner of VoltKit.