Random Number Generator

This random number generator picks whole numbers or decimals from any range you set, such as 1 to 10 or 1 to 100. Get one number or up to 200 at once, allow or block repeats, sort the list, and use an optional seed when you need the same batch again.

Calculation and content reviewed by EZ Calculators Editorial Team on .

Enter values

Define a finite integer or decimal range, choose the replacement and display rules, then generate an auditable batch without allocating the complete range.

Build the scenario below, then calculate for a complete result report.

Runs in your browser
Unseeded sourceBrowser Web Crypto
Range mappingRejection sampling
Batch limit200 values
Choose the result typeInteger mode selects whole numbers after applying ceiling to the lower boundary and floor to the upper boundary. Decimal mode selects exact fixed-precision slots.

Define the inclusive range

Whole numbersBoth mapped boundaries are included. Integer mode rounds inward to whole numbers; decimal mode requires the boundaries to fit the selected number of decimal places exactly.
Integer mode rounds this boundary upward; decimal mode uses it exactly at the selected precision.
The upper boundary is inclusive after the selected mode and precision are applied.

Build the batch

Batch size controls the complete ledger length. In decimal mode, decimal places changes the number of selectable slots and is limited to 50.
Generate 1 through 200 values in one batch.
numbers
Decimal mode treats each 10^-precision step as one possible value. Disabled in integer mode.
digits
Choose the replacement ruleIndependent draws with replacement can repeat. Unique sampling removes each selected slot for the rest of the batch and fails when more unique values are requested than the range contains.
Choose the displayed orderSorting never redraws the batch. The complete ledger keeps each value's original draw position so the generated sequence remains auditable.

Optional repeatable sequence

Leave the seed blank for Browser Web Crypto. A seed switches to a predictable deterministic sequence intended only for repeatable tests or demonstrations, never security or consequential selection.
Leave blank for Web Crypto. A seed repeats the batch for tests but is not secure.
Casual browser generationUse an independently audited system for consequential selections.
This is not an independently audited lottery, gambling, security-key, research-randomization, legal-selection, or regulated drawing system. Match consequential work to its governing protocol.

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

Enter 1 as the lower limit and 100 as the upper limit, keep Integer mode, and press Generate numbers. Both ends are included, so there are 100 possible results and each one has exactly a 1 in 100 (1%) chance on every draw. For 1 to 10, each number has a 10% chance.

How to use the random number picker

The generator opens set to one whole number from 1 to 100. Change the limits, the count and the options, then press Generate numbers. With no seed, every press gives a fresh batch.

Pick Unique values only when you can't have the same number twice, like drawing raffle tickets or assigning seats. Leave repeats on when each pick should be independent, like rolling a die over and over.

  1. Enter the lower and upper limits. Both are included.
  2. Choose how many numbers you want, from 1 to 200.
  3. Pick Integer or Decimal, and set decimal places if needed.
  4. Choose Allow repeats or Unique values only.
  5. Pick generated, ascending or descending order, then press Generate numbers.

Random number generator 1-10 and 1-100

Both limits count, so a range from a to b holds b - a + 1 numbers. 1 to 10 has 10 possible results and 1 to 100 has 100. Each one is equally likely on every draw, and over many draws the average settles near the middle of the range.

Repeats come up sooner than most people expect when repeats are allowed. Draw just 5 numbers from 1 to 10 and there's a 69.76% chance at least two match. Choose Unique values only if that would be a problem.

Formula guide
  • Possible values = upper limit - lower limit + 1
  • Chance of any one value = 1 / possible values
  • Chance of at least one repeat in k draws = 1 - (n x (n - 1) x ... x (n - k + 1)) / n^k
Common ranges at a glance
RangePossible numbersChance of any one numberLong-run averageChance of a repeat in 5 draws (repeats allowed)
1 to 6616.67%3.590.74%
1 to 101010%5.569.76%
1 to 20205%10.541.86%
1 to 50502%25.518.64%
1 to 1001001%50.59.65%

Random numbers without repeats

Unique values only samples without replacement: once a number is picked, it's out for the rest of that batch. You can't ask for more unique numbers than the range holds. Six unique numbers from 1 to 6 always returns all six in some order, and a request for seven is rejected.

Large ranges work too. Integer limits can be up to 200 digits long, and the tool picks unique values without building a list of every number in the range.

Decimal mode and fixed decimal places

Decimal mode splits the range into equal steps at the number of places you choose, from 0 to 50. At two places, 0.20 to 0.25 has six possible values: 0.20, 0.21, 0.22, 0.23, 0.24 and 0.25. Each is equally likely.

If a limit has more decimal places than you selected, the tool rejects it instead of quietly rounding. In Integer mode, fractional limits shrink to the whole numbers inside them, so 0.2 to 112.5 becomes 1 to 112.

How the numbers are generated

With the seed left blank, the tool asks your browser for random bytes through crypto.getRandomValues(), part of the Web Crypto API. Browsers produce these with a cryptographically secure pseudo-random generator seeded from the operating system's entropy. It doesn't use Math.random(), which MDN says isn't suitable for anything security related.

To fit those bytes to your range, the tool keeps only as many bits as the range needs and throws away any value that lands past the top, then draws again. For 1 to 10, it reads 4 bits (16 possible values), keeps the 10 that map to your range and redraws the other 6. That rejection step is what keeps every number equally likely.

What the seed does

Typing a seed switches to a small deterministic generator. The same seed with the same settings gives the same batch every time, which helps for lessons, demos and software tests where someone needs to check your results.

Seeded output is predictable by design, so it's not secure. Never use it for passwords, keys, tokens, prize draws or anything where someone could gain by guessing the next number.

When to use something else

This picker is fine for classroom questions, turn order, games, sample data and casual giveaways among friends. For lotteries, regulated gambling, paid prize draws, legal selection or research randomization, use an audited process that meets the rules you're under, with records and witnesses as required. Nothing here is stored or logged for later proof.

Sources

FAQ

Can I generate several random numbers at once?

Yes. Set How many values to anything from 1 to 200. Every value appears in a full list with its original draw position, even if you sort the display.

Are the lower and upper limits included?

Yes, both. A range of 1 to 10 can return 1 and can return 10. In Integer mode, fractional limits are trimmed to the whole numbers inside them.

How do I pick a random number from a list of names?

Number the names from 1 upward, then generate a number in that range. For a draw with several winners, pick Unique values only so nobody is chosen twice.

Why did I get the same number twice?

With Allow repeats on, every draw uses the full range, so matches are normal. Five draws from 1 to 10 contain at least one repeat 69.76% of the time. Switch to Unique values only to prevent it.

Does sorting change which numbers were drawn?

No. Ascending and descending only change the display. The list keeps each value's original draw position, so you can still see the order they came out.

Can I get the same random numbers again?

Only with a seed. Enter any text as the seed and the same settings will reproduce the same batch. Without a seed, each batch is new and can't be recreated.

Can I use this for a raffle?

For a casual raffle among friends, yes. Number the tickets, set the range to match and pick Unique values only so no ticket wins twice. Paid, public or regulated drawings usually need an audited process with records.