Random Number Generator fair every time

Set a minimum and maximum, choose how many numbers you want, and press Generate. Each whole number in the range has exactly the same chance of being picked. For example, a number between 1 and 100 has a 1-in-100 chance. Choose “No repeats” for raffles and lotteries, where each value can come up only once.

Your result

Your random number

Press Generate

Numbers are generated in your browser, never on our server, so nobody else sees the same result.

Understand it

What the Random Number Generator Does

A random number generator (RNG) picks numbers by chance within a range you choose. It is useful for raffles and giveaways, picking a student or a winner, games, statistics samples and settling decisions fairly.

This generator uses your browser’s cryptographic random source (the Web Crypto API). It applies rejection sampling, so every value is exactly equally likely, without the small bias that simple “random × range” code can have. The numbers are created on your device and never sent to our server. Beyond whole numbers, it can produce decimals, roll any common die and pick names from a list without repeats.

How the Random Number Formula Works

value = min + U(0, max − min + 1) U(0, n) = r mod n, where r is a 32-bit CSPRNG value and r is re-drawn if r ≥ ⌊2³² ÷ n⌋ × n No repeats: partial Fisher–Yates shuffle
CSPRNG
cryptographically secure pseudo-random number generator (crypto.getRandomValues)
Rejection sampling
discards the few raw values that would make some results more likely than others

Worked Examples

Lottery-style: 6 numbers from 1–49, no repeats

Generate: Whole numbers in a range · Minimum: 1 · Maximum: 49 · How many: 6 · Repeats: No repeats (each value once) · Order: Sorted ascending

Your random numberPress Generate

Six different numbers, sorted. Odds of matching all six: 1 in 13,983,816.

Roll 3 six-sided dice

Generate: Dice rolls · How many: 3 · Die: d6 (6 sides) · Order: As drawn

Your random numberPress Generate

Three independent rolls from 1 to 6. The total ranges from 3 to 18, and 10 or 11 is the most likely sum.

Pick a winner from a list

Generate: Pick from a list (names, items) · How many: 1 · Repeats: Allow repeats · List (one per line or comma-separated): Alex, Sam, Jordan, Priya, Chen, Maria

Your random numberPress Generate

One name, each with a 1-in-6 chance.

Original analysis

Random Number Analysis in numbers

Every chart below is generated from the same tested formula that powers the calculator above, so you can see the patterns behind a single result.

Ways to roll each total with two dice (out of 36)Ways024623456789101112
View data table
Ways
21
32
43
54
65
76
85
94
103
112
121

One die is flat; two dice make a peak

Each face of a single die is equally likely. Add two dice together, though, and 7 comes up six times as often as 2 or 12, because there are six ways to make 7 and only one way to make 2. Summing random numbers pushes results toward the middle: this is the start of the bell curve.

View data table
DrawPossible resultsChance of a specific result
1 number from 1–101010%
1 number from 1–1001001%
Pick 3 (000–999)1,0000.1%
6 from 49 (any order)13,983,8161 in 13,983,816
Powerball (5 of 69 + 1 of 26)292,201,3381 in 292,201,338

Your odds in common draws

For draws without repeats, the number of possible results grows very fast, which is why lotteries are so hard to win.

Common Random Number Questions

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

Leave Minimum at 1 and Maximum at 100, then press Generate. Each number has a 1% chance.

Can it pick random names?

Yes. Choose “Pick from a list”, paste names one per line or separated by commas, and choose how many to pick, with or without repeats.

Is this a lottery number generator?

It can generate lottery-style picks, such as 6 different numbers from 1 to 49. No generator can improve your odds: every combination is equally likely.

Tips and Common Mistakes

  • For a fair raffle, number the tickets, choose “No repeats” and draw as many winners as you need in one go.
  • Share the page link before drawing so everyone can see the settings. The link stores the range, not the result.
  • Need a password rather than a number? Use our password generator.

Frequently asked questions

Are these numbers truly random?

They come from a cryptographically secure generator that your operating system seeds with physical randomness, such as hardware timing noise. They are unpredictable and suitable for draws and games.

Does it ever repeat numbers?

Only if “Allow repeats” is chosen. Then each draw is independent, so the same number can come up twice. Choose “No repeats” to get each value at most once.

Can I generate negative or decimal numbers?

Yes. Enter a negative minimum for negative numbers, or choose “Decimal numbers” and set the decimal places.

Is my result stored anywhere?

No. Numbers are generated in your browser and are not sent to or saved on our server.

Sources and methodology

Last reviewed

byBhuvanesh S. Runs through our automated test suite on every build.

Results are estimates. Double-check anything important before relying on it.