Quick answer: Each number from 1 to 4 has a 1 in 4 (25%) chance, with an average of 2.5. Map the numbers to options, for example 1 = A, 2 = B, 3 = C, 4 = D, to choose between four answers fairly.
Examples
| You want to… | Setting |
|---|---|
| Pick one of four teams to go first | 1 number |
| Choose an answer key position (A–D) when writing a quiz | 1 number per question |
| Order four presenters | 4 numbers, no repeats |
| Pick a season or quarter at random | 1 number |
How to use it
- Press Generate for one number from 1 to 4.
- For several numbers, open More options, set How many numbers (up to 4 with No repeats) and choose an order.
- Change Min or Max at any time to use a different range.
- Copy the results, or press Present to show them full screen.
Good uses for 1–4
- Writing multiple-choice tests: randomise where the correct answer goes, so it does not cluster at B or C.
- Four-team activities: choose who starts, or assign challenges to teams.
- Presentation order for four people, decided in one click with no repeats.
Worth knowing
- With only four outcomes, repeats come fast: three draws have a 62.5% chance of including at least one match.
- There are exactly 24 possible orders of four items (4 × 3 × 2 × 1). Drawing 4 numbers without repeats picks one of them with equal chance.
How the numbers are chosen
Your browser’s cryptographic random source (crypto.getRandomValues) supplies 32-bit random values.
We map them onto your range with rejection sampling: any value that would make some numbers slightly
more likely than others is thrown away and redrawn. The common shortcut (value % range) skips this step
and adds a small bias. For No repeats we use a partial Fisher–Yates shuffle, which draws only as many numbers
as you ask for, even from a huge range.
The result is fixed before the rolling animation starts. The animation is decoration and never changes the outcome. Everything runs on your device: nothing you enter or generate is sent to us. More on how it works.
Limits
- Whole numbers only, between about −9 quadrillion and +9 quadrillion (JavaScript’s exact integer range), with a range width of up to 253.
- Up to 10,000 numbers per click. With No repeats, you can’t ask for more numbers than the range contains.
- Fine for games, classrooms and everyday choices. Not certified for lotteries, regulated prize draws or generating security keys.
Need a different range? Use the main random number generator.
Questions
Are 1 and 4 both possible?
Yes. Both ends are included, each with a 25% chance.
How do I put 4 things in random order?
Set How many numbers to 4 and tick No repeats. The order shown is the random order.
Can I pick from named options instead?
Yes: the random list picker lets you type the options themselves.
References
- W3C. Web Cryptography Level 2: Crypto.getRandomValues(). World Wide Web Consortium specification.
- Daniel Lemire. Fast Random Integer Generation in an Interval. ACM Transactions on Modeling and Computer Simulation 29(1), 2019 (discusses modulo bias and rejection).
- Richard Durstenfeld. Algorithm 235: Random permutation. Communications of the ACM 7(7), 1964.
Page reviewed 30 November 2026.