Calculators

Random number generator

Write two numbers and get one or more random numbers between them; with no repeats or with decimals if you like.

The two numbers themselves can come up too.

This tool runs entirely inside your browser. No file or text is sent to any server.

How to use

  1. Write the smallest number in “From number” and the largest in “To number”.
  2. If you want more than one number, raise “How many numbers”. For decimals, set “Decimal places” above zero. “Do not repeat a number” is on from the start; if you want a number to be able to come up more than once, turn it off.
  3. Press “Generate”. Every time you press it, new numbers are made.
  4. Press “Copy” to take the numbers; the earlier numbers are not kept. To start again, press “Reset”; the boxes go back to their starting values and “Do not repeat a number” is turned on again.

Notes on this tool

The two numbers you write are part of the range too. Between 1 and 6, for example, each of the numbers 1 to 6 has the same chance.

The numbers come from the browser’s own secure random number generator, the same one the password generator uses, not from a simple formula whose result could be guessed.

With “Do not repeat a number” on, each number comes up at most once, as when you take several numbered slips out of a bag and never put one back. If you turn it off, a number can come up more than once, as when you roll a die several times.

If “Do not repeat a number” is on and you ask for more numbers than there are between the two ends, such as ten numbers between 1 and 6, the tool makes no numbers and shows an error message; lower the amount or turn it off.

With decimal places above zero, every number is written with that many decimals, even if the last one is zero: 3.40, not 3.4.

The numbers are made only in your own browser and are never saved or sent anywhere.

Frequently asked questions

How do I get several different numbers, say five between 1 and 30?
Put 1 in “From number”, 30 in “To number” and 5 in “How many numbers”; “Do not repeat a number” is on from the start, so the numbers come out different.
What do I do to roll a die or flip a coin?
For one die, put 1 in “From number” and 6 in “To number”. For several dice, raise “How many numbers” and turn off “Do not repeat a number”, because two dice can show the same number. For a coin, take the range from 0 to 1 and agree beforehand which number is heads and which is tails.
Can I use negative numbers?
Yes; put a minus sign before the number, for example from -10 to 10.
Can I use it to draw among several people?
If each person has a number, yes. But it is better to write the names straight into the random picker; that tool has reserve winners and writes the date and time of the draw above the result.
How big a range and how many numbers does it accept?
Each of the two numbers can be up to thirty characters (digits, a minus sign and a point), and the calculation is exact, not approximate. You can ask for up to a thousand numbers and up to ten decimal places.

Related tools

Random name picker

Paste a list of names, say how many winners you need, and get them drawn at random with no repeats.

Calculators

Strong password generator

Create a secure random password with the length and character mix you choose.

Passwords & security