Random Number Generator
Generate random numbers in any range with crypto.getRandomValues and unbiased sa...Generate random numbers in any range with crypto.getRandomValues and unbiased sampling. Unique lottery draws, decimals, dice, and coin flips, all priv...
Updated
crypto.getRandomValues and an unbiased range map. Nothing is sent anywhere. Works offline.Set your options and press Generate.
Quick answer
To generate a random number, set a minimum and maximum, choose how many you want, and press Generate. This tool builds each number in your browser with crypto.getRandomValues, the cryptographically secure random source, and maps it into your range with rejection sampling so every value is equally likely, with no modulo bias. It can also draw unique lottery numbers, decimals, dice rolls, and coin flips, and nothing is ever sent to a server.
Why It's Better
Why Use Random Number Generator?
Truly Fair, Unbiased Randomness
Every number comes from crypto.getRandomValues, the browser's cryptographically secure random source, mapped into your range with rejection sampling. That means no modulo bias, so a 1 is exactly as likely as a 7. Most simple generators use Math.random plus a modulo, which quietly favors the low end of a range.
Unique Draws for Lotteries and Raffles
Turn on 'no duplicates' and the tool draws a genuine permutation, so a set of lottery or raffle numbers never repeats. It uses a shuffle rather than retrying, so it stays instant even when you want the whole range drawn once.
Integers, Decimals, and Any Range
Set any minimum and maximum, pick how many numbers you want, and choose integers or up to four decimal places. Sort the results low to high, high to low, or leave them in draw order.
100% in Your Browser
There is no server to send anything to. Every roll, flip, and draw happens on your device, so it is private and keeps working with your wifi off. Open the Network tab and you will see zero requests.
Common Uses for Random Numbers
Games & Tabletop
Roll dice, flip coins, or pick a random value on the fly.
Lottery & Raffles
Draw unique, sorted numbers for a fair pick.
Testing & Sampling
Random seeds, test data, and statistical samples.
Giveaways & Picks
Pick a random winner or assign a random order.
How It Works
Set Your Range and Count
Enter the minimum and maximum, and how many numbers you want. Or tap a preset like 1 to 100, a lottery draw, or a 4-digit PIN.
Choose Your Options
Pick integers or decimals, turn on 'no duplicates' for a unique draw, and set a sort order. Switch to the Dice or Coin tab for NdM rolls and coin flips.
Generate and Copy
Press Generate to get your numbers with live min, max, sum, and average. Copy them with one click, or press again for a fresh set.
Tips & Information
Use a Preset to Start
The presets fill the range, count, and options for common jobs like a 1 to 100 pick, a lottery draw, or a 4-digit PIN.
Unique Means Fair Draws
For any draw where a value should not repeat, such as a raffle or shuffled order, turn on 'no duplicates' to get a true permutation.
Unique Needs Enough Room
A unique draw needs at least as many possible values as numbers requested. You cannot draw 20 unique whole numbers from 1 to 10.