Skip to content
YouNeed Tools
Free VPN

Random Number Generator

Set a range and how many numbers you want, then press Generate. Each number is drawn fairly with your device’s secure random generator.

Pick

Generated on your device. Nothing is sent or saved.

Worked example

A teacher wants to pick 5 different students from a class register numbered 1 to 30. Set From 1, To 30, How many 5, tick No repeats and choose “Smallest first”. A draw might give 3, 11, 17, 24, 29. Any particular set of 5 has a chance of 1 in 142,506, and every student has the same 5 in 30 (1 in 6) chance of being picked.

How fair numbers are made

The browser hands us raw random 32-bit numbers, from 0 to 4,294,967,295. To get a number from 1 to 6 you can’t simply take the remainder after dividing by 6, because 4,294,967,296 isn’t a multiple of 6: four of the six results would come up very slightly more often. Instead we find the largest multiple of 6 below 2³², throw away any raw value at or above it (a tiny fraction of draws) and use the remainder of the rest. For “no repeats” we shuffle the range with the Fisher–Yates method or draw again on a repeat, so every possible set is equally likely.

Odds of some common draws

DrawChance of one exact result
Roll a 6 on a die1 in 6
Pick 7 from 1 to 101 in 10
Guess a 4-digit PIN1 in 10,000
6 from 491 in 13,983,816
6 from 591 in 45,057,474
5 from 69 (Powerball white balls)1 in 11,238,513

Every set of numbers is as likely as any other: 1, 2, 3, 4, 5, 6 has exactly the same chance as a “random-looking” set. Past draws don’t change future ones; a number isn’t “due” because it hasn’t come up for a while.

Ideas for using it

  • Classrooms: pick who answers next, form random groups by shuffling the class list, or make random sums for practice.
  • Games: dice of any size (1 to 20 for tabletop games), random turns, bingo calls with no repeats.
  • Research and quality checks: choose a random sample of records, such as 50 invoice numbers out of 2,000.
  • Decisions: when two options are equally good, let chance decide and move on.

Random numbers and statistics

Each draw is independent, so short runs often look less random than people expect: in 20 rolls of a die it is normal to see the same number three times in a row, and some numbers may not come up at all. Over many draws the counts even out. If you need a random sample for a survey or audit, generate the record numbers without repeats and sort them so they are easy to find; record the range and the date in your notes so the method can be described. For anything where the outcome must be verifiable by others, such as a public prize draw, use an independent witness as well as a screen recording.

Related tools

Sources

Checked on November 26, 2026:

Frequently asked questions

Is this random number generator truly random?
It uses your browser’s cryptographic random number generator (crypto.getRandomValues), the same source used to create encryption keys. It is seeded from unpredictable events in your device, so the numbers can’t be predicted or repeated.
Is every number equally likely?
Yes. A common shortcut, taking a random number “mod” the range, makes small numbers slightly more likely. We throw away the few raw values that would cause that bias and draw again (rejection sampling), so every number in your range has exactly the same chance.
How do I pick numbers without repeats?
Tick “No repeats”. Each number can then come up only once, like balls drawn from a lottery machine. You can’t ask for more unique numbers than there are in the range.
Can I pick a name from a list?
Yes. Switch to “From a list”, paste one name or item per line and press Pick, or shuffle the whole list into a random order. For a spinning wheel, use Spin the Wheel.
Can I use it for a raffle or giveaway?
Yes, but for anything with prizes or money, record the draw (screen recording) and follow the rules of your platform and country on prize draws.
Are my numbers or lists stored?
No. Everything is generated on your device; nothing is sent or saved.

Last updated: 2026-11-26