01 / Source
Crypto randomness
Bits come from crypto.getRandomValues, the generator browsers provide for security keys, not from Math.random.
Free tool
Pick a number between any two numbers, roll a die, or draw a whole list at once, with or without repeats, sorted or as drawn, even with decimals. Every number in the range is exactly as likely as the next: the randomness comes from your browser's cryptographic generator, and nothing is sent anywhere.
Need a custom tool, app or website? Contact us →?
Or press the space bar.
Last numbers
Range
How many
Numbers are drawn in your browser. Nothing is uploaded. Your settings are kept in this browser for next time.
How it is fair
01 / Source
Bits come from crypto.getRandomValues, the generator browsers provide for security keys, not from Math.random.
02 / Range
A simple "random modulo range" makes some numbers a little likelier. Draws that would cause that are thrown away and drawn again.
03 / Lists
Without repeats, numbers are taken like cards from a shuffled deck: each one can come up only once.
Guide
A random number generator picks a number between two limits so that every number in the range has the same chance. This one gives a single number or up to 10,000 at once, with or without repeats, as whole numbers or with up to six decimals. It runs in your browser and draws from the same secure source the browser uses for encryption keys.
| Setting | What it changes | Good for |
|---|---|---|
| From and To | The range. Order does not matter: 100 to 1 works the same as 1 to 100. Negative numbers are fine. | Any pick |
| Numbers | How many to draw, from 1 to 10,000. Up to 200 show as tiles where the big number was, and every list also shows as text you can copy, with its sum and average. | Samples, test data, several winners |
| Decimals | None, 1, 2, 3 or 6 places. Each value at that step is equally likely. | Prices, measurements, probabilities |
| No repeats | Each number can appear only once, like cards dealt from a shuffled deck. | Raffles, seat numbers, picking questions |
| Order | As drawn, Low to high or High to low. Sorting happens after the draw, so it does not change which numbers were picked. | Lottery style lists, checking by eye |
| List as | One per line, or comma separated. | Pasting into a spreadsheet, or into a message |
The Last numbers panel keeps your 12 most recent single picks, newest at the top, so you can see what came up before. It clears when you close the page. Your settings stay in this browser, so the range you used last is there next time.
Copy link to these settings copies a link that opens this page with your range, how many, decimals, No repeats and order already set. Send it to a class or a group so everyone draws the same way. The settings sit after the # sign in the link, which browsers never send to a server. The link does not carry the numbers themselves, so each person who opens it draws fresh ones.
Say you sold 250 raffle tickets, numbered 1 to 250, and you have three prizes. Set From to 1, To to 250, Numbers to 3, and keep No repeats ticked. Click Generate once. The three numbers in the list are your winners, and none can be the same ticket twice.
Each ticket has a 3 in 250 chance of being one of the winners, which is 1.2%. Leave Sort off if the order matters, for example first prize to the first number drawn. If you need a record of the draw, press Download .txt straight after. The file starts with the range, the settings and the time of the draw in UTC, then the numbers. For a public giveaway, record your screen while you click as well.
With decimals on, the generator counts every step between your limits. From 0 to 1 with 2 decimals means 0.00, 0.01, and so on up to 1.00. That is 101 different values, each with a 1 in 101 chance. From 0 to 1 with 1 decimal has only 11 values: 0.0, 0.1 and up to 1.0.
This matters with No repeats. If you ask for 20 numbers from 0 to 1 with 1 decimal and no repeats, the tool will say there are only 11 different numbers, so 20 cannot all be different. Add a decimal place, widen the range, or untick No repeats.
Many simple generators take a random number and use the remainder after dividing by the size of the range. That sounds fine, but it can favour some numbers. Picture a source that gives a number from 0 to 255, and you want a die roll from 1 to 6. 256 divided by 6 is 42 with 4 left over, so four of the six faces would come up 43 times in every 256 draws and the other two only 42 times.
This tool avoids that. It draws 53 random bits, and if the value falls in that small uneven slice at the top, it throws it away and draws again. What is left divides evenly, so every number in your range is exactly as likely as every other. For No repeats on a large share of a small range, it shuffles the whole range and takes numbers from the top, which is the card deck method.
Computer generators come in two kinds. A pseudo random generator runs a formula from a starting value, so in theory someone who knows the formula and the start could predict it. A hardware generator measures something physical, like electrical noise. The browser's crypto source mixes the two: it is seeded with unpredictable data from your device and is built so the next value cannot be guessed from the last ones. For games, raffles, classroom picks and sampling, that is more than enough.
For a yes or no, try the coin flip. To pick from names instead of numbers, use the random name picker, and for game nights the dice roller shows each die.
Questions
Yes: number the entries, set the range to match, and draw as many winners as you need with No repeats on. For rules that require a witness or an audit, record your screen while you draw.
Yes. From 1 to 10 can give 1 and 10, and every number between.
Yes. Type a negative limit, and pick up to six decimals; every value at that step is equally likely.
Only your settings, in this browser, so they are ready next time. The numbers you draw are not stored: the last ones are shown on the page and disappear when you close it.
One in the number of values in the range. From 1 to 10 each number has a 1 in 10 chance, and from 1 to 100 a 1 in 100 chance, on every draw.
Set the range to your list, for example 1 to 30, set Numbers to 30, keep No repeats ticked and leave Order on As drawn. You get every number once, in a shuffled order.
Yes. Type =RANDBETWEEN(1,100) in a cell for a whole number from 1 to 100. It picks a new number every time the sheet recalculates, so copy and paste the result as a value if you need to keep it.
It is unpredictable enough for games, draws and sampling. This tool uses the browser's cryptographic generator, which is designed so that past numbers do not reveal the next one.