Random Number Generator from 1 to 40

Random Number Generator
Random number from
to

Random number between 1 and 40?

any of the 40 whole numbers from 1 to 40, each with a 2.5% chance

Generate a number

N = 40 − 1 + 1 = 40 P = 1 ÷ 40 = 2.5%

The Range 1–40 in Numbers

Even / odd numbers20 / 20
Chance of an even number20 / 40 = 50%
Draws for a particular number to reach a 50% chance28

With repeats allowed, each draw misses a particular number with probability 1 − 1/40, so after k draws it has appeared at least once with probability 1 − (1 − 1/40)k. That first reaches 50% at k = 28.

Related Calculations

See Also

FAQ

Random number between 1 and 40?

It can be any of the 40 whole numbers from 1 to 40, each with a 2.5% chance

How many numbers are there from 1 to 40?

40 whole numbers: 40 − 1 + 1 = 40, because both bounds are included. Even numbers among them: 20, odd: 20 — so an even result comes up with a 50% chance.

How many draws does it take to get a particular number from 1 to 40?

With repeats allowed, a particular number has at least a 50% chance of appearing once it has been given 28 draws; after 27 draws the chance is still below 50%. Each draw is independent, so earlier misses do not make it «due».

How to pick several different numbers from 1 to 40?

Set how many numbers you need and tick «No repeats». The generator then draws without replacement, so you can get up to 40 different numbers — the whole range in random order.