Random Number Generator
Generate random numbers within a range with options for count, uniqueness, and sorting.
Random Number Generator tool
Example
Input: Minimum 1, maximum 100, count 5, duplicates allowed, no sorting
Result: A list of 5 whole numbers such as 21, 5, 31, 45, 27, plus their sum, average and range (new values on every click)
Each number is drawn independently and uniformly from 1 to 100 using the browser crypto random source, so every value has a 1 in 100 chance.
- Set the minimum and maximum range for your random numbers.
- Choose how many random numbers to generate.
- Toggle between unique numbers only or allow duplicates.
- Choose whether to sort the results ascending, descending, or keep them in random order.
- Click Generate Numbers to create your random numbers, then use Copy All to copy the results.
How Fair Random Numbers Are Picked
This random number generator picks whole numbers between a minimum and a maximum that you set, with both ends included. You can draw one number or up to 1,000 at once, allow or block repeats, and sort the list. Each draw uses your browser's secure random source, so every number in the range has the same chance.
Fairness depends on how the numbers are made. The tool uses the crypto.getRandomValues function built into browsers, which is the same source used for security work. A common shortcut, taking a large random value and keeping its remainder, makes some results slightly more likely than others. The generator avoids this by throwing away the few values that would tilt the odds.
The settings cover most everyday uses. For a raffle with tickets 1 to 500, turn on Unique Numbers Only so no ticket is drawn twice. For dice-style results, leave repeats on, or use the Roll a Dice tool for a visual roll. If you ask for more unique numbers than the range holds, such as 20 from 1 to 10, you get all 10 and a short notice. Below the list you see the sum, the average and the smallest and largest values drawn. Copy All copies the whole list, separated by commas. The generator makes whole numbers only, and it swaps the minimum and maximum for you if you enter them the wrong way round.
Repeats show up more often than most people expect. Draw 10 numbers from 1 to 100 with repeats allowed, and there is about a 37% chance at least two will match. For lottery-style picks with bonus balls, the Lottery Number Generator is built for the job.
Frequently Asked Questions
Related Tools
Flip a Coin
Flip a virtual coin with realistic animation. Get instant heads or tails results for quick decisions.
Randomizers and GeneratorsRoll a Dice
Roll one or more dice with custom sides. Supports standard d4, d6, d8, d10, d12, d20, and custom dice.
Randomizers and GeneratorsLottery Number Generator
Generate random lottery numbers with customizable ranges and counts. Supports popular lottery formats.
Randomizers and GeneratorsRandom Name Picker
Pick random names from a list. Enter your own names, pick one or more winners. Great for raffles.
Randomizers and Generators