Random Number Generator

Set a range and how many numbers you need, then press Generate. Draws use your browser’s cryptographically secure random generator, so every number in the range has exactly the same chance.

Both the minimum and maximum can be drawn.
Random numbers39, 81, 61, 3, 86
Numbers generated5
Range size100
Duplicates allowedNo

Each draw picks one of 100 equally likely whole numbers from 1 to 100, using crypto.getRandomValues with rejection sampling.

Calculated on your device · formulas checked against known results · How we test

How to use the random number generator

Enter the lowest and highest numbers you want — both are included — and how many numbers to draw, then press Generate. Check No duplicates to draw each number at most once, like pulling numbered tickets from a hat. Check Sort results to list them from smallest to largest. Use the Copy button to paste the list into a spreadsheet, document or message. Negative numbers work too.

How the numbers are generated

The numbers come from crypto.getRandomValues, the cryptographically secure random number generator built into your browser, rather than the general-purpose Math.random. Everything runs on your device; nothing is sent to a server, and nobody — including us — can predict or see the results.

Turning a raw random value into a number in your range takes care. The quick method — take the remainder after dividing by the range size — slightly favors the lowest numbers whenever the range doesn't divide the raw range evenly. Imagine a source that produces 0 to 9 and a range of three numbers: remainders give 0 four times (from 0, 3, 6 and 9) but 1 and 2 only three times each. This generator uses rejection sampling: it discards the few raw values at the top that would cause that imbalance and draws again, so every whole number in your range has exactly the same chance.

With or without duplicates

With duplicates allowed, each draw is independent, like rolling a die again and again, and repeats show up more often than intuition suggests. Drawing 5 numbers from 1 to 100, the chance of at least one repeat is about 9.65%. With no duplicates, you cannot draw more numbers than the range holds — 1 to 10 gives at most 10 unique numbers — and the calculator warns you if you try.

Practical uses

The odds of a specific number

With a range of N whole numbers, each draw lands on any particular value with probability 1 in N — 1 in 100 for the range 1 to 100. Over k independent draws, the chance that a given number appears at least once is 1 − (1 − 1/N)k. Past results never change the next draw, so a number that hasn't come up in a while is not "due."

Frequently asked questions

Are these numbers truly random?

They come from a cryptographically secure generator seeded by your operating system, which is unpredictable enough for drawings, games, sampling and security uses. Regulated lotteries and gambling require certified hardware and audits, so don’t use any website for those.

Are the minimum and maximum included?

Yes. A range of 1 to 10 can produce both 1 and 10, and each of the ten numbers is equally likely.

Can I generate random decimals?

The generator produces whole numbers. For decimals, scale up and divide: for two decimal places between 0 and 1, generate numbers from 0 to 100 and divide each by 100.

Why do I get repeated numbers?

With duplicates allowed, every draw is independent, so repeats are normal — about a 1 in 10 chance with five draws from 1 to 100. Check "No duplicates" to prevent them.

Is the result saved anywhere?

No. Numbers are generated in your browser and disappear when you change the inputs or leave the page, so copy them if you need a record.

Embed this calculator on your website

Free for any website or blog. Paste this code where you want the calculator to appear:

Last updated: October 8, 2026

Menu

Categories

Finance Calculators16 calculatorsBusiness & Shopping Calculators6 calculatorsHealth & Fitness Calculators6 calculatorsMath & School Calculators5 calculatorsDate & Time Calculators4 calculatorsHoliday Countdowns10 calculatorsEveryday Tools5 calculators

CalcWorthy

AboutContactPrivacy PolicyTerms of Use