Skip to content

Random Number Generator

Generate random numbers within a range with options for count, uniqueness, and sorting.

Random Number Generator tool

Loading...

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.

  1. Set the minimum and maximum range for your random numbers.
  2. Choose how many random numbers to generate.
  3. Toggle between unique numbers only or allow duplicates.
  4. Choose whether to sort the results ascending, descending, or keep them in random order.
  5. 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

They come from your browser crypto random source, which is designed to be unpredictable enough for security uses. Strictly, that makes them pseudo-random, but no one can guess the next number from past ones. For games, draws, classroom picks and sampling, they are as good as random.
Turn on Unique Numbers Only before you click Generate Numbers. No value will appear twice in that list. The count cannot be more than the numbers in your range. If you ask for more, the generator returns every number in the range once and shows a notice explaining why.
Not directly, as the generator only makes whole numbers. You can scale instead. To get values from 0.00 to 10.00 with two decimal places, generate numbers from 0 to 1000 and divide each one by 100. The same trick works for any number of decimal places.
Number the entries, then generate one number from 1 to the size of the list. For 250 entries, set the minimum to 1 and the maximum to 250, set the count to 1, and click Generate Numbers. Match the number to your list. To paste names instead of numbers, a name picker tool saves this step.

Related Tools

Flip a Coin

Flip a virtual coin with realistic animation. Get instant heads or tails results for quick decisions.

Randomizers and Generators

Roll a Dice

Roll one or more dice with custom sides. Supports standard d4, d6, d8, d10, d12, d20, and custom dice.

Randomizers and Generators

Lottery Number Generator

Generate random lottery numbers with customizable ranges and counts. Supports popular lottery formats.

Randomizers and Generators

Random Name Picker

Pick random names from a list. Enter your own names, pick one or more winners. Great for raffles.

Randomizers and Generators

Password Generator

Generate strong, secure passwords with customizable length, character types, and multi-word passphrases.

Security and Encryption

Combination and Permutation Calculator

Calculate nCr and nPr with step-by-step factorial breakdowns. Understand when order matters.

Statistics and Data