QR Code Generator
QR Code Generator online: fast, lightweight and always one click away.
Pick a random whole number between any two values you choose — inclusive of both ends. A quick, fair random number from your browser.
Your browser is preparing the tool. It runs 100% locally.
Set a From and a To value and the tool picks a random whole number between them, including both ends — so a range of 1 to 100 can return 1, 100 or anything in between, each equally likely. It is uniform, with no number favoured. The pick uses the browser's standard random generator, which is fine for raffles, games and everyday choices but not for lotteries or security. It runs entirely in your browser.
Enter the lowest and highest numbers you want and press the button to get a random whole number in that range, both ends included. It is the quick way to pick a winner, choose a random item by number, or get an unbiased number on demand.
Every number in the range is equally likely. A range of 1 to 6 behaves like a die; 1 to 100 like a hundred-sided pick; and you can set any range you like, including ones that start above one or go into the negatives.
The tool measures the size of the range — the count of whole numbers from the lowest to the highest, inclusive — picks one of them at random with each equally likely, and adds it to your starting number. The standard floor-of-random technique keeps the distribution uniform.
Because both ends are included, a range from 1 to 100 has a hundred possible results, not ninety-nine. Each pick is independent of the last, so the same number can come up twice in a row.
pick = from + floor(random × (to − from + 1))from 1, to 100 → any whole number 1 to 100, inclusiveBoth ends are included; every number in the range is equally likely. Each pick is independent.
| Inputs | From and To values |
|---|---|
| Range | inclusive of both ends |
| Output | one random whole number |
| Distribution | uniform (each number equally likely) |
| Randomness | Math.random (pseudo-random) |
| Where it runs | In your browser — nothing uploaded |
Both ends are included. A range of 1 to 100 can return 1 or 100, and there are a hundred possible results — a point worth checking when you are mapping numbers to a list.
Picks are whole numbers only and uniform — every value in the range is equally likely, with no bias. It does not produce fractions or decimals.
Each pick is independent. The same number can appear twice in a row, and a previous pick does not make any number more or less likely next time.
It uses the browser's pseudo-random generator. That is fine for raffles, games and everyday choices, but it is not cryptographically secure — do not use it for real-money lotteries or anything where the result must be tamper-proof.
Set From below To. If the lowest value is larger than the highest, the range makes no sense and the result will be wrong; put the smaller number in the From field.
Pick a winning number from a numbered list of entries.
Generate a random number in any range a game needs.
Choose a random item by its position in a list.
Pick a number when you need an unbiased choice.
Picking from names rather than numbers? Use the random name picker. Rolling dice with a total? Use the dice roller. Need unpredictable randomness for security? Use a cryptographic generator.
Picks a uniform whole number across an inclusive range using the browser's Math.random and the standard floor-of-random technique; it is explicit that both ends are included, that picks can repeat, and that the pseudo-random source is fine for raffles and games but not for lotteries or security.
QR Code Generator online: fast, lightweight and always one click away.
Use Stopwatch and Timer anytime, free and private, with no app to install.
Use Online Notepad anytime, free and private, with no app to install.
Unit Converter — a handy, instant browser utility you will bookmark.
Barcode Generator online: fast, lightweight and always one click away.
Use Random Name Picker anytime, free and private, with no app to install.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.