Calculators
Random number generator 1 to 3
Select Generate numbers and the page picks 1, 2 or 3 for you. Each has the same one in three chance on every draw, so the tool can settle a choice between three options. Raise How many numbers for a list, or select No repeats to put 1, 2 and 3 in random order. It runs in your browser.
How to pick 1, 2 or 3
The form opens with Minimum value 1, Maximum value 3 and How many numbers 1, so the first click already answers. Number type stays on Integers, which keeps every result a whole number.
- Select Generate numbers. The box under Your numbers shows 1, 2 or 3.
- Select Generate again for a second pick. The new draw does not look at the last one.
- Select Copy results to put the number on your clipboard, or Download .txt to save it as random-numbers.txt.
Any change to a field clears the result, so generate again after an edit. Reset brings back 1 to 3 with one number and an empty box. To use the pick for a decision, write down your three options and give them the numbers 1, 2 and 3 before you select Generate numbers. Numbering them first stops you from moving an option to a better number once you have seen the result.
Choosing between three options
Many searches for a number from 1 to 3 are really a choice: three places to eat, three chores, three people who could go first. Give each option a number, generate once and follow the result. Each option then has a one in three chance, about 33.3%, whatever order you wrote them in.
The generator has no opinion on which option is better. It only makes the pick fair, so the question of whether to choose 1, 2 or 3 has no right answer here beyond the draw itself. If you catch yourself hoping for a different number, you have learned which option you prefer.
For a game of rock, paper, scissors against the page, map 1 to rock, 2 to paper and 3 to scissors before you draw. For options that should not be equally likely, this tool is the wrong fit: it cannot give one number more weight than another.
Why each number gets exactly one third
The generator reads random bytes from Web Crypto, the browser's cryptographic random source. Three values need 2 bits, so it keeps the lowest 2 bits of a byte, a value from 0 to 3. The values 0, 1 and 2 become the numbers 1, 2 and 3. The value 3 is thrown away, and the generator reads the next byte.
That way each number owns exactly 64 of the 256 possible bytes, and the other 64 bytes lead to a fresh try. Three in four bytes are kept, so one number costs 1.33 bytes on average.
The shortcut of dividing a byte by 3 and keeping the remainder would be slightly unfair. A byte has 256 values, which is 85 threes plus 1, so the number 1 would own 86 byte values, a 33.59% chance, while 2 and 3 would own 85 each, 33.20%. The gap is small, and rejection sampling removes it completely.
Repeats and streaks with only three numbers
With three possible results, repeats are common. Each new draw matches the one before with a chance of one in three. In a check of 1,000,000 draws through the real engine, 33.25% of draws matched the draw before, and each number came up between 333,135 and 333,600 times, against an expected 333,333.
A list of three draws with repeats allowed holds 1, 2 and 3 once each only 22.2% of the time, so 77.8% of such lists repeat a number. All three draws land on the same number 11.1% of the time. A streak changes nothing: the next draw still has a one in three chance for each number.
Over ten draws, a given number is missing only 1.7% of the time. On average it takes 5.5 draws to see all three numbers at least once. For a list that must contain each number exactly once, use No repeats.
1, 2 and 3 in random order
Select No repeats and set How many numbers to 3 to put the three numbers in a random order, such as 2, 1, 3. The generator then draws without replacement: the first line is one of three numbers, the second is one of the two left, and the last number fills the third line.
Each of the six possible orders has a chance of one in six, about 16.7%. In 60,000 such lists from the engine, every order appeared between 9,854 and 10,128 times, against an expected 10,000. Use the order for turns in a game for three players, or to decide which of three tasks comes first.
With No repeats on, How many numbers can be at most 3 in this range. At 4 the page shows an error beside How many numbers, saying there are fewer available values than the requested count, and generates nothing. Each new list starts over.
Limits
The page shows numbers as text. It has no spinning wheel, no sound and no animation, and it cannot pick an option by its name. Number your options first, or shuffle the names themselves with the list tool below.
The generator keeps no history. It cannot prevent a number from coming back in a later list or replay an earlier draw, and it keeps no record that proves to someone else that a draw was fair. The result is cleared when you leave the page.
Other ranges are one edit away: set Maximum value to 2 for a pick between 1 and 2, or to 4 for four options. How many numbers has no cap. Above 10,000 numbers the box shows the first 10,000, while Copy results and Download .txt include every number. The page needs JavaScript and Web Crypto, and without them it shows a message instead of numbers.
Questions
Can you give me a number that is 1, 2, or 3?
Yes. Select Generate numbers and the page shows one whole number from 1 to 3, because it opens with Minimum value 1, Maximum value 3 and How many numbers 1. Each number has the same one in three chance. Select Generate again for a new pick; the next result can repeat the last one.
Should I choose 1, 2, or 3?
The page cannot tell you which option is better, but it can make the choice for you. Number your three options before you draw, select Generate numbers and take the option with that number. Each option has a 33.3% chance, and no number is luckier than another on this generator.
How do I get 1 to 3 with no repeats?
Select No repeats, set How many numbers to 3 and select Generate numbers. The list then holds 1, 2 and 3 once each, in one of six orders with equal chance. A count of 2 gives two different numbers. A count of 4 or more gives an error, because only three values exist.
Is a 1 to 3 random number generator fair?
This one gives each number exactly one third. It uses Web Crypto random bytes and throws away the byte values that would favour one number, instead of dividing and keeping a remainder. In a check of 1,000,000 draws, each number came up between 333,135 and 333,600 times against an expected 333,333.
Related tools
- Shuffle a list of lines: put the three options themselves in random order, by name.
- Number the lines of a list: give each option its number before you draw.
- Random numbers from any range: whole numbers or decimals between any minimum and maximum.