Skip to content
CalcPilot
Salary calculator: gross to net pay for Canada, the US, the UK, France and Germany
Everyday

Random Number Generator

Generate one or more random numbers within a range you choose.

About this calculator

What Is a Random Number Generator?

A random number generator (RNG) produces numbers that have no predictable pattern. Set a minimum and a maximum, choose how many numbers you want, and the generator returns them — useful for games, raffles and giveaways, picking a winner, sampling data, assigning groups, making fair choices and testing software. Each number is chosen independently of the others, so past results never influence the next draw.

What Counts as Random?

A random number is picked from a set of possible values so that nothing about earlier numbers lets you predict later ones. Often every value in the range is equally likely, which is a uniform distribution, but randomness can follow other shapes: heights in a school cluster around an average in a normal distribution. This tool uses uniform draws, the right choice for lotteries, dice and everyday decisions.

True vs. Pseudo-Random Numbers

  • True (hardware) randomness comes from unpredictable physical processes — rolling dice, flipping a coin, radioactive decay or electrical noise.
  • Pseudo-random number generators (PRNGs) are algorithms that create sequences that look random and pass statistical tests, but are fully determined by a starting value called a seed. Computers and phones use PRNGs because they are fast and repeatable.

For games, simulations, raffles and everyday picks, a good PRNG is more than enough. For cryptography — keys, tokens and passwords — a cryptographically secure source is needed; our Password Generator is built for that.

Common Uses

  • Drawing a winner from a numbered list of entries.
  • Selecting a random sample for a survey or experiment.
  • Deciding who goes first, or splitting a group into teams.
  • Creating test data, lottery-style number sets or random seeds.

Is It Really Fair?

Yes — each value in the range has an equal chance on every draw. Do not be surprised by streaks or repeats: real randomness often looks "less random" than people expect, and seeing the same number twice in a row is normal. If you need a physical-style result, the Dice Roller gives you dice of any size, and for counting arrangements and chances, see the Probability Calculator.

Worked example

Generating 1 number between 1 and 100 returns a single random integer in that range, using your browser's cryptographically secure random number generator.

Frequently asked questions

Is this truly random?

It uses crypto.getRandomValues(), the same class of randomness used for encryption keys — far higher quality than Math.random(), and suitable for anything short of cryptographic key generation itself.

Can I generate numbers without repeats?

Yes — uncheck "Allow duplicate numbers" to guarantee every number returned is unique. This requires the range to contain at least as many values as you're requesting.

What's the maximum I can generate at once?

Up to 100 numbers per click, to keep results easy to read and copy.

More Everyday calculators

Advertise on CalcPilot