Country & language

Sets the currency, units and country-specific rules (tax, VAT, salary) in calculators. General tools stay the same.

Pages that are not translated yet open in English.

↑ ↓ to move · Enter to open · Esc to close

Random Number Generator

Set the range, how many numbers and whether they may repeat. Every draw uses your browser’s cryptographic random source, and the result shows the odds behind it – the chance of a repeat, or of matching the whole draw.

Quick answer: Set the minimum to 1 and the maximum to 100: each whole number has a 1 in 100 (1%) chance. Draw 10 numbers with repeats allowed and there is a 37.2% chance that at least two match; choose “No – all different” to rule that out.

Updated · Free · No sign-up

Random Number Generator inputs

Result

Random number from 1 to 100

57

Range
1 to 100
Count
1
Chance of each value
1 in 100

How a fair draw works

A random number generator is fair when every value in the range is equally likely and nobody – including the person pressing the button – can predict or steer the result. This page uses the browser’s crypto.getRandomValues, the cryptographically secure generator defined in the W3C Web Cryptography API and used for encryption keys. Browsers build it as a deterministic random bit generator of the kind NIST SP 800-90A standardises, seeded and reseeded from the operating system’s hardware entropy, so past outputs reveal nothing about the next one.

value = minimum + ⌊r × n⌋, where n = number of possible values and 0 ≤ r < 1 has 53 random bits

For 1 to 100, n = 100 and each value covers exactly 1% of the possible r values (to within 1 part in 90 trillion). Decimals work the same way on a finer grid: 0 to 1 with two decimals is the 101 values 0.00, 0.01 … 1.00. For draws without repeats, a small range is shuffled with a partial Fisher–Yates shuffle; a large range is drawn value by value and any repeat is thrown away, which keeps every set of numbers equally likely.

Three draws, computed by the generator

A giveaway: 3 winners from 500 entries

Number the entries 1 to 500 and draw 3 with “No – all different”. Each entry has a 0.6% chance of winning (3 ÷ 500), and any particular trio of winners has odds of 1 in 20,708,500. Sort the result smallest first and match the numbers to your published list.

A lottery-style pick: 6 different numbers from 1 to 49

The odds of matching all six in any order are 1 in 13,983,816 – 49 × 48 × 47 × 46 × 45 × 44 ÷ 720. Change the range to 1–31 and the odds become 1 in 736,281. A random pick does not make you likelier to win; it only makes you less likely to share a prize with people who play birthdays (1–31) or patterns.

The birthday problem: 23 numbers from 1 to 365

With repeats allowed, the chance that at least two of 23 numbers match is 50.7%. The same arithmetic explains “broken” dice: two dice show a double 16.7% of the time, and 10 numbers from 1–100 contain a repeat 37.2% of the time. Repeats are what independent draws look like.

Odds at a glance

SettingsShown in the resultValue
1 number, 1–100Chance of each value1 in 100
2 numbers, 1–6, repeats allowedChance of at least one repeat16.7%
10 numbers, 1–100, repeats allowedChance of at least one repeat37.2%
23 numbers, 1–365, repeats allowedChance of at least one repeat50.7%
3 numbers, 1–500, no repeatsChance a given value is drawn0.6%
6 numbers, 1–31, no repeatsOdds of matching the whole draw1 in 736,281
6 numbers, 1–49, no repeatsOdds of matching the whole draw1 in 13,983,816

Settings that change the answer

  • Repeats allowed or not. Allowed means every draw is independent, like rolling a die again. Not allowed means the drawn number leaves the hat, like a raffle – and you can never draw more numbers than the range holds.
  • Whole numbers or decimals. Decimals multiply the number of possible values: 1 to 10 has 10 whole numbers but 901 values with two decimals.
  • Order. Sorting changes only how the numbers are shown, never which numbers are drawn. Keep “As drawn” when the order itself matters, such as first, second and third prize.
  • Range size. Ten decimal places over a range of a trillion would need more values than 53 random bits can reach evenly, so the form refuses it rather than favour some values.

Running a giveaway or raffle people trust

For Ramadan and Eid giveaways, office raffles or a class draw, fairness is something the audience must be able to check. Freeze the entry list at the closing time, remove duplicates and entries that break your rules, number what is left and publish it. Announce the range, how many winners and that repeats are off before you draw, then record the screen as you press Generate. If a winner does not respond, draw again from the remaining numbers rather than picking the next person on the list.

A business that runs a prize draw to promote sales is running a regulated competition, not a game. In Saudi Arabia, for example, the Ministry of Commerce requires a licence before a commercial competition starts and does not allow a purchase to be made a condition of entry; check your own country’s rules before you announce prizes.

Common mistakes

  • Forgetting that both ends count. 0 to 100 holds 101 whole numbers, not 100.
  • Redrawing until you like the result. A draw is fair only if the first result stands.
  • Using “repeats allowed” for winners. One person could win twice – use “No – all different”.
  • Expecting a random lottery pick to win more often. Every combination has exactly the same odds.

When you need more than this page

For a licensed lottery, a regulated promotion or a scientific study that must be audited, use the process the regulator or ethics board specifies – often a certified draw machine, an independent witness or a published seed so others can reproduce the selection. This page is built for everyday draws where speed, fairness and a clear view of the odds matter most.

Frequently asked questions

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

Enter 1 as the minimum and 100 as the maximum and press Generate. Both ends are included, so there are 100 possible values and each has a 1 in 100 chance; 1 to 10 gives 1 in 10.

How do I generate random numbers without repeats?

Set “Allow duplicates?” to “No – all different”. You cannot ask for more numbers than the range holds – 20 different numbers from 1 to 10 is impossible, and the form tells you the limit. Drawing all 10 from 1–10 gives a random order of 1 to 10, which is how you shuffle a list.

Why did I get the same number twice?

With repeats allowed every draw is independent, and repeats come sooner than most people expect: 10 numbers from 1–100 contain a repeat 37.2% of the time, and 23 numbers from 1–365 – the birthday problem – 50.7% of the time. The result shows this chance for your settings.

How do I pick giveaway winners fairly?

Number the valid entries 1 to N in the order they arrived, publish that list, then draw the number of winners with “No – all different”. For 3 winners from 500 entries, each entry has a 0.6% chance; keep a screenshot of the settings and the result.

Are these numbers truly random?

They come from crypto.getRandomValues, the browser’s cryptographically secure generator, which is seeded from the operating system’s hardware entropy. No one can predict the next number, which is what matters for a draw; services such as random.org instead measure physical noise, which is “true” randomness but no fairer in practice.

What are the odds of a 6-from-49 lottery?

1 in 13,983,816 for all six numbers in any order – the result shows this when you draw 6 different numbers from 1 to 49. Six numbers from 1 to 31 give 1 in 736,281. A generator picks numbers at random but cannot improve those odds; it only avoids the popular birthday and pattern picks that winners share.

How many values are there between 0 and 1 with two decimals?

101, not 100, because both 0.00 and 1.00 are included. So each value has a 1 in 101 chance, and 5 numbers drawn with repeats allowed include a repeat 9.6% of the time.

What does RNG mean?

RNG stands for random number generator. In games it means the hidden draw that decides loot or critical hits; here it is the same idea with the settings in plain view.

What changed

  • – Page fully reviewed. The result now shows the chance of at least one repeat when repeats are allowed, and for no-repeat draws the chance that a given value is picked and the odds of matching the whole draw. Ranges with more than 2⁵³ possible values (for example 10 decimal places over a trillion) are now refused instead of being drawn unevenly, and counts of 1,000 show a thousands separator.

Sources

Last reviewed: · Reviewed by Chelsea, CalcBright's animated guide, for the CalcBright editorial team · How we check our numbers