Random Number Generator

Pick random numbers in any range, or flip a coin or roll a die. Tick No repeats when every number has to be different.

–

Your data stays in your browser

This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data

  • No upload
  • Processed on your device
  • No account

How do I pick a random number between 1 and 100?

Leave the range at 1 to 100 and press Generate, or tap the "1 to 100" shortcut. Every number in the range has exactly the same chance of coming up. Change the range for anything else: 1 to 6 for a die, 1 to 30 to pick a student by roll number, or 1 to however many people entered your giveaway.

Is this random number generator truly random?

It uses your browser's cryptographic random generator (crypto.getRandomValues), the same source browsers use for encryption keys. That's far less predictable than the basic Math.random() many simple generators use. We also correct for "modulo bias", a small skew that makes some numbers slightly more likely in sloppier generators. Numbers are made in your browser, so we never see them.

What is "No repeats" for?

Picking several winners, drawing raffle tickets, or choosing lottery-style numbers where each number can only come up once. With it off, the same number can appear more than once, the way it would if you rolled a die several times.

Can I use it for a giveaway?

Yes. Number your entries, set the range to match, and pick. For anything with legal rules, like an official prize draw, follow whatever process those rules require. Need a random password rather than a number? Use the Password Generator. Need random IDs for software? Try the UUID Generator. Doing the sums afterwards? There's the Online Calculator.

Questions people ask

How do I get a random number between 1 and 10?

Tap the "1 to 10" shortcut, or set From to 1 and To to 10 and press Generate.

Can I generate random numbers without repeats?

Yes. Keep "No repeats" ticked and every number you get will be different.

Is this generator fair?

Yes. Every number in the range is equally likely. It uses the browser's cryptographic randomness and avoids the small bias some generators have.

Can I flip a coin online?

Yes. Press "Flip a coin" for Heads or Tails, each with a 50% chance.

How many numbers can I generate at once?

Up to 1,000 per click.

Can it pick lottery numbers?

It can pick numbers in the same format, for example 6 numbers from 1 to 49 with no repeats. It can't make you more likely to win, since every combination is equally likely.

Related tools