?

Random Number Generator

Statistics & ProbabilityFreeStep by step

A random number generator picks numbers so that every value in a range is equally likely. This one draws whole numbers between any minimum and maximum, with or without repeats, using a cryptographically secure random source in your browser. Use it to roll dice, pick lottery numbers, choose a raffle winner or make random samples.

Try:

How to use the random number generator

  1. Enter the smallest and largest numbers allowed.
  2. Choose how many numbers you want and whether repeats are allowed.
  3. Press Calculate. Press it again for a new set.

Formula

P(each value)=1max−min+1P(\text{each value}) = \frac{1}{\text{max} - \text{min} + 1}

Worked example: 5 numbers from 1–100

  • Minimum: 1
  • Maximum: 100
  • How many numbers: 5
  • Repeats: No repeats (all different)
  • Order: As drawn

✓ Answer checked

94, 55, 84, 60, 51

Each number is equally likely
Probability of any one value on each draw = 1/100
Sum / mean of these numbers
344 / 68.8
Expected mean
50.5
Step-by-step working (2 steps)
  1. Count the possible values

    Every whole number from 1 to 100 can be picked.

    100−1+1=100100 - 1 + 1 = 100
  2. Draw at random

    Each number is drawn with a cryptographically secure random source, so every value is equally likely, and numbers already drawn are skipped.

Formulas used
P(any value)=1max−min+1P(\text{any value}) = \frac{1}{\text{max} - \text{min} + 1}
How this was checked
  • ✓ All 5 numbers are whole numbers between 1 and 100 with no repeats.

Press Calculate again for a fresh set of numbers.

Frequently asked questions

Are the numbers truly random?

They come from your browser's cryptographically secure random source, the same kind used for security keys, so every value is equally likely and unpredictable.

How do I pick lottery numbers?

Set the minimum to 1, the maximum to the highest ball number, the count to how many balls are drawn, and choose no repeats.

Can I use it to pick a winner?

Yes. Number the entries from 1 upwards, set that range, and draw one number.

People also search for

random number generatorrandom number pickerpick a random numberlottery number generatordice rollerrandom number generator with stepsfree random number generator online

Related calculators

More statistics & probability tools

Related guides