Random Number Generator
Pick a range, choose how many, decide on duplicates. We'll roll the numbers — fairly, fast, and with the satisfying click of a slot machine.
A random number generator is a free browser tool that produces numbers in any range using crypto.getRandomValues() — the Web Cryptography API standard for unpredictable randomness. Suitable for lottery draws, dice rolls, raffle picks, and any use requiring true random integers. Enable no-duplicates mode for unique number sets.
Common ranges, one tap.
🎲 Dice (1–6)
Single die roll, the classic.
💯 1 to 100
The percentage-style pick.
🎰 Lottery (6 of 49)
UK-style lottery numbers, no repeats.
🔢 PIN (4 digits)
Random 4-digit code generator.
What people roll for.
🎰 Lottery picks
Powerball, Mega Millions, Lotto. Generate your numbers without buying a Quick Pick.
🎁 Raffle drawings
Numbered tickets? Pick winners by their numbers, fair and verifiable.
🎮 Game mechanics
D&D rolls, board game randomizers, probability experiments.
📊 Sampling & research
Pick a random row from a dataset. Run a statistical exercise. Build a quiz answer key.
Random Number Generator — 1 to 100, Lottery, Dice & More
FairPick's random number generator picks any number in any range, instantly, with no signup and no limits. The most common use is generating a number between 1 and 100 — for classroom "pick a number" activities, deciding turn order, settling arguments, or running probability exercises. But the tool scales from a single dice roll (1–6) to a full lottery draw (6 unique numbers from 1–49) to a bulk generate of 1,000 numbers at once.
Lottery Number Generator
For lottery number generation, use the preset "Lottery (6 of 49)" button — it picks 6 unique random numbers from 1 to 49 in one click, matching the UK National Lottery format. For Powerball (5 from 1–69 plus 1 from 1–26), set the range manually and run two separate generates. Toggle "No duplicates" on for any lottery-style draw to guarantee each number appears only once — essential for any game where repeated numbers are invalid.
Random Number Between 1 and 10, 1 and 20, or Any Range
Set minimum and maximum to any values — positive, negative, or zero. The tool handles the full 32-bit integer range, so you can generate numbers up to roughly 4 billion. "Random number between 1 and 10" works exactly as you'd expect: set min to 1, max to 10, click generate. The result is a cryptographically random integer in that range with equal probability for every value.
Dice Roller
Use the "Dice (1–6)" preset for a standard die roll, or customize the range for other dice: 1–4 for a d4, 1–8 for a d8, 1–12 for a d12, 1–20 for the classic D&D d20. Set "How many numbers" to match how many dice you're rolling — 2d6 means min 1, max 6, quantity 2. Each number is rolled independently with equal probability.
Why crypto.getRandomValues() Matters
Most number generators online use Math.random(), which is a deterministic pseudorandom function — it produces numbers that pass statistical tests for randomness but are not suitable for anything requiring genuine unpredictability. FairPick uses crypto.getRandomValues(), which draws entropy from your operating system's hardware random source. For games, raffles, lotteries, and statistical sampling, this is the correct choice.
Number-related FAQs.
How random is the random number generator?
We use crypto.getRandomValues() — your browser's cryptographically-strong random source, which is suitable for everything from games to cryptographic key generation. It's significantly more random than Math.random().
Can I generate negative numbers?
Yes. Set the minimum to a negative value. Both ends of the range can be negative or positive, as long as max ≥ min.
What's the largest range I can use?
Numbers up to about 4 billion (32-bit unsigned integer max). For most purposes — lotteries, dice, raffles — this is more than enough.
Can I generate without duplicates?
Yes. Toggle "No duplicates" and the generator will produce unique numbers. Useful for lottery picks, raffle draws, and any case where you don't want repeats.
Why does my browser say my numbers are similar?
True randomness produces clusters and patterns more often than people expect. Three of the same number in 20 rolls of a six-sided die is normal. The brain looks for patterns, but randomness happily delivers them.