easyonlinecalculator

Random Number Generator

Set a minimum and a maximum and press Generate. The tool returns a whole number from that range, both ends included, and every value has exactly the same chance. You can also draw up to 100 numbers at once, with or without repeats.

Last updated November 2, 2026

1 to 100

Result

1 random number from 1 to 100, 100 possible values.

Press Generate to draw. Each draw is new and is not stored.

How the number is picked

Formula

number of values = maximum − minimum + 1

result = minimum + (random draw mod values)

Your browser supplies a random 32-bit number from its secure random generator, the same source used for encryption keys. The tool turns that into your range by taking the remainder after dividing by the number of values, then adding the minimum. A range of 1 to 100 has 100 values, so the result is 1 plus a remainder between 0 and 99.

A plain remainder is slightly unfair when the range does not divide evenly into the 4,294,967,296 possible draws, because the lowest values would come up a little more often. To prevent that, any draw in the uneven leftover part at the top is thrown away and a new one is taken. What remains maps onto every value equally often, so no number is favored.

See how we calculate for the formulas, sources and review schedule behind every calculator.

Also useful alongside this calculator: Percentage Calculator, Average Calculator and Standard Deviation Calculator.

Repeats and unique numbers

With repeats allowed, each number is an independent draw, so the same value can appear twice, just as a die can land on 4 two throws in a row. Choose this for simulations, test data or anything where draws should not affect each other.

With repeats off, every number in the result is different. This suits raffles, picking winners and sampling, where nobody can be chosen twice. You cannot ask for more different numbers than the range holds: 10 unique numbers from 1 to 5 is impossible, and the tool says so instead of guessing.

Choosing a range

Both ends are included, so 1 to 10 can return 1 and can return 10. To pick from a list of 25 names, number them 1 to 25 and use that range. For a percentage use 0 to 100, which has 101 values, and for a coin flip use 1 to 2.

Negative values work too: -10 to 10 has 21 values, including 0. Minimum and maximum must be whole numbers between -1,000,000,000 and 1,000,000,000, and the minimum cannot be larger than the maximum. A range of a single value, such as 7 to 7, always returns that value.

What it is good for, and what it is not

Random numbers settle everyday choices: who goes first, which task to start with, which seat or prize number wins. Teachers use them to call on students, and developers use them for test data. Because nothing is stored or sent, a draw cannot be traced back to you.

Do not use it for passwords, security keys or anything that guards an account or money. A password needs a purpose-built generator that handles length and character sets, and gambling and official lotteries have their own rules. This page is a convenient fair draw, not a certified one.

How to use the Random Number Generator

  1. Enter a minimum and a maximum. Both are included in the draw.
  2. Choose how many numbers you want, and whether the same number may appear more than once.
  3. Press Generate. Press it again for a fresh draw.
  4. Use Copy, Print or Share to keep the numbers or send the same settings to someone else.

Worked example

Worked example

To draw 3 winners from 40 raffle tickets, set the minimum to 1, the maximum to 40, the count to 3 and repeats to No. Each draw has 40 possible values, and because repeats are off the three tickets are always different, for example 7, 23 and 31. Pressing Generate again gives a new set with the same settings.

Values in common ranges
RangePossible valuesChance of one value
1 to 2 (coin flip)21 in 2
1 to 6 (one die)61 in 6
1 to 10101 in 10
0 to 100 (percentage)1011 in 101
1 to 1,0001,0001 in 1,000
-10 to 10211 in 21

Frequently asked questions

Is the number truly random?

It comes from your browser’s secure random generator, which is seeded by unpredictable data from your device. It is not a hardware dice roll, but nobody can predict the next number from the previous ones.

Can the minimum or maximum come up?

Yes. Both ends are included, so a range of 1 to 10 returns 1 and 10 as often as any other number.

How do I pick numbers with no repeats?

Set “Allow repeats” to No. Every number in the result is then different, as long as the range holds at least as many values as you ask for.

Can I use it for a lottery or a giveaway?

It is fine for a casual giveaway among friends. Official lotteries and regulated draws must follow their own rules, so do not use this page for them.

Is anything stored or sent?

No. The numbers are generated in your browser and are not saved or uploaded. Sharing a link only encodes your settings, never a result.