Random Number Generator
Generate one or many random numbers within a custom range.
Generator
Pick a minimum, maximum, and count to generate random integers.
Generate one or many random numbers within a custom range.
Continue with useful tools for nearby tasks.
Type the smallest value you want into the Minimum box and the largest into the Maximum box, then set Count to how many numbers you need, up to 100. Press Generate and the tool instantly returns that many random integers, each one somewhere between your minimum and maximum inclusive. Use Copy to put the whole list on your clipboard so you can paste it into a spreadsheet, a chat message, or a document. Generating again produces a fresh, unrelated set of numbers, so you can keep drawing until you have what you need.
This generator is pseudo-random. A mathematical algorithm in your browser starts from an internal seed and produces a sequence of numbers that is evenly spread and impossible to predict in ordinary use, even though it is computed rather than measured from the physical world. A true random source instead draws from physical entropy, such as electrical noise or radioactive decay, and is used where outcomes must be unguessable even by an attacker who knows the system. For dice, games, classroom picks, sampling, and prize draws, pseudo-random numbers are uniform and fair. For cryptographic keys or legally regulated gambling, a certified hardware true-random generator is the right choice.
The right minimum and maximum depend entirely on what you are choosing. These common setups show how a single range maps onto an everyday task. Remember that both ends of the range are included.
| Use case | Range | Count | Notes |
|---|---|---|---|
| Roll a single die | 1 - 6 | 1 | Each face equally likely |
| Roll two dice | 1 - 6 | 2 | Sum them for a 2 to 12 result |
| Coin flip | 0 - 1 | 1 | Treat 0 as heads, 1 as tails |
| Lottery-style draw | 1 - 49 | 6 | Remove any repeats by hand |
| Pick a winner from entrants | 1 - 250 | 1 | Number entrants first |
| Random sample of survey rows | 1 - 1000 | 30 | Pick which rows to inspect |
A wider range makes accidental duplicates less likely, which matters when every drawn number should be different.
Suppose 80 people entered a giveaway. List them in a spreadsheet so each person sits on a numbered row from 1 to 80. Set the minimum to 1, the maximum to 80, and the count to 1, then press Generate. If the result is 47, the person on row 47 wins. Because every number from 1 to 80 has exactly the same chance, no entrant is favoured. If you want runners-up too, raise the count to 3 and, should the same number appear twice, simply generate once more for the duplicate.
Picking numbers in your head is slower than it looks and quietly biased, because people unconsciously avoid repeats and favour the middle of a range. A generator removes that bias and settles choices in a second: which team goes first, which row to spot-check, who wins the prize, or what value to feed a test case. Teachers use it to call on students at random, developers use it to create sample data, and organisers use it to run fair draws, all without installing anything or creating an account.
Every number is generated locally in your browser, so nothing about your ranges or results is ever uploaded or stored on a server, and the tool keeps working even if you go offline after the page loads. The numbers are statistically uniform across your chosen range and suitable for games, draws, sampling, and decisions. For cryptographic keys or legally regulated lotteries, where outcomes must be auditable and resistant to attack, use a dedicated certified true-random system instead of this everyday utility.
They are pseudo-random. The generator uses your browser's built-in random function, which produces numbers that are statistically uniform and unpredictable for everyday purposes, but are calculated by an algorithm rather than drawn from a physical source of entropy. For games, draws, sampling, and decisions this is more than fair. For cryptographic keys or regulated gambling you should use a hardware or certified true-random source instead.
Yes. Both ends are included. If you set the minimum to 1 and the maximum to 6, every result is between 1 and 6 inclusive, so 1 and 6 can both appear just as often as 2, 3, 4, or 5. The range is closed on both sides.
Yes. Each number is drawn independently, so duplicates are possible and expected, especially in a small range. Generating five numbers between 1 and 10 may well return the same value twice. If you need unique values with no repeats, such as a lottery draw, pick a wide range or remove duplicates yourself afterwards.
For an informal giveaway it is perfectly fair: every number in the range has an equal chance, with no hidden bias toward low or high values. Assign each entrant a number, generate one result, and the matching entrant wins. For a high-value or legally regulated draw, use an audited drawing system so the process can be independently verified.
No. The numbers are produced entirely in your browser and are never uploaded or stored on a server. You can use the tool offline once the page has loaded, and nothing about your ranges or results leaves your device.