Maaz Zindani

Loading the index…

↑↓ move↵ openesc close3993 pages

Free tool · Generators

Random number generator

Type a lowest and a highest number, say how many you want, and get a random draw at once. Whole numbers or decimals, no repeats, sorted order and dice are all one tap away.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

What to draw
Type of number
From 1 to 10,000 in one go.
Options
With No repeats every number can appear only once, like drawing from a hat.
Order
List with

Drawn in your browser with the cryptographic random generator (crypto.getRandomValues). Nothing you enter is stored or sent anywhere.

Your random number

59an integer from 1 to 100

  • Never leaves this device
Possible values
100

How to use the Random Number Generator

  1. Enter the Lowest number and the Highest number. Both are included in the draw, and negative numbers are fine.
  2. Choose Whole numbers or Decimals, and set How many numbers you want.
  3. Tick No repeats to draw every number only once, and pick an Order if you want the list sorted.
  4. Press Draw again for a new draw and Copy to take the result. Switch What to draw to Dice to roll one or more dice.

How do I generate a random number between two numbers?

Enter the lowest and the highest number and the tool draws from every value in between, ends included. For whole numbers the count of possible values is highest - lowest + 1, so 1 to 100 has 100 values and each has a 1 in 100 chance on every draw. The result card shows that count as "Possible values", next to the lowest, the highest and the sum of what was drawn.

You can draw several numbers at once, up to 10,000. By default each draw is independent, so the same number can come up twice, just as two rolls of a die can match. Switch on No repeats when you need distinct numbers. Choose Low to high or High to low to sort the list, and pick commas or one number per line for the way it is written, which is handy when you paste it into a spreadsheet.

Can I get several numbers without repeats?

Yes, tick No repeats. The tool then draws like pulling numbered tickets from a hat and not putting them back: the first draw uses all 100 values, the second uses the 99 that are left, and so on. It does this with a partial Fisher-Yates shuffle, which makes every possible set and order of numbers equally likely and works however wide the range is.

Without repeats the count cannot be larger than the range. Ask for 11 numbers between 1 and 10 and the tool says "Only 10 different numbers fit between 1 and 10" instead of guessing. With repeats allowed, small ranges collide often: five numbers from 1 to 100 are all different only about 90.3% of the time, which is why a quick "draw five" can hand you a pair.

Is this truly random?

Every number comes from crypto.getRandomValues, the random generator your browser takes from the operating system, which is built to be unpredictable. It is a cryptographically secure pseudo-random generator and not a physical source such as radioactive decay or atmospheric noise, so "true random" in the strict physical sense would be too strong a claim. For games, classroom picks, test data and sampling it is more than good enough.

The tool also avoids a common bias. A 32-bit random value cannot be split evenly into most ranges: 2^32 divided by 6 leaves a remainder of 4, so taking the value modulo 6 would make faces 1 to 4 a hair likelier. For a range of three billion the effect is large, and the lowest 43% of values would turn up twice as often. This generator throws away the few draws that fall in the uneven tail and draws again, so every value has the same chance. It is not an audited draw, so do not use it for gambling or a legally regulated prize draw.

Can I get decimals or negatives, and how do I pick a winner from a list?

Choose Decimals and 1 to 6 decimal places. The tool treats the range as steps of that size, so 0 to 1 with two places has 101 values: 0.00, 0.01 and so on up to 1.00, each equally likely. The arithmetic uses whole-number math underneath, which keeps 0.3 exactly 0.3 and not 0.30000000000000004. Negative numbers work in whole numbers and decimals alike, for example -50 to 50. Numbers can have up to 15 digits before the point.

To pick a random winner from a list, number the entries from 1 to the size of the list and draw one number with a lowest of 1 and a highest equal to the number of entries. To pick several winners, tick No repeats and ask for that many numbers. If you would rather see the names, the spin the wheel picks one name from your list, and the random team generator can split a list into groups. The Dice mode rolls up to 100 dice with 4 to 100 sides and shows each die and the total, plus the lowest and highest total possible.

Use it with

Questions

How do I generate a random number between two numbers?

Enter the lowest and the highest number and press Draw again. Both ends are included, and each whole number in between is equally likely.

Can I get several numbers without repeats?

Yes. Tick No repeats and set How many numbers. The count cannot be larger than the range, and the tool tells you if it is.

Is this truly random?

It uses your browser's cryptographically secure random generator and discards draws that would favour some values. That is not a physical random source, and it is not an audited draw for gambling or legal prizes.

Can I get decimals or negative numbers?

Yes. Choose Decimals and 1 to 6 places for decimals. Negative numbers work in both modes, for example -50 to 50.

How do I pick a random winner from a list?

Number the entries from 1 to the size of the list and draw one number in that range. For several winners, tick No repeats and ask for that many numbers.

How many numbers can I draw at once?

Up to 10,000 numbers or 100 dice in one go. The result can be sorted and copied as a comma-separated list or one per line.

How this page was made: the tool's results are computed in your browser by the code on this page; the explanations were drafted with AI help and checked against the tool's own output.