Skip to content

Random Number Generator 1-2

Get a random number from 1 to 2.

Loading the random number generator 1-2… If nothing appears, please turn on JavaScript.

This random number generator picks a whole number from 1 to 2, and every number has exactly the same 1 in 2 chance. The range is already set, so just press the button. It works like a coin toss with numbers: each has a 50% chance.

How to use the 1-2 number generator

  1. Press Pick a number (or the spacebar).
  2. Choose how many under Options if you need more than one number.
  3. Keep “No duplicates” on so the same number cannot come up twice in one draw.
  4. Change the range under Options if you need different lowest or highest numbers.

When to pick a random number from 1 to 2

  • Two-way choices: number two options 1 and 2 and pick one.
  • Who goes first: player 1 or player 2.
  • Binary practice: generate random 1s and 2s for simple sequences.
  • Team picks: split people between team 1 and team 2.
  • Coin alternative: when you prefer numbers to heads and tails.

Keep, copy and share your numbers

Every result has a lock button. Locked results stay put when you generate again, so you can keep the numbers you like and reroll the rest. The history panel keeps your earlier results, and the back arrow takes you to the previous set if you generated one time too many. Press Wheel to put the current results on a spinning wheel and pick one with a bit of drama.

Use Copy to copy the results as a plain list, CSV or JSON, or download them as a file. Share copies a link that shows exactly the same results to whoever opens it, which is handy for games, classes and group chats.

Just like a coin flip

Picking between 1 and 2 gives each number a 50% chance, exactly like a coin toss. Set how many numbers you want to make a random sequence of 1s and 2s, and turn off “No duplicates” so numbers can repeat.

Prefer heads and tails? Flip a coin instead, or ask the yes or no generator.

How the randomness works

Every result comes from your browser’s built-in cryptographic random number generator (crypto.getRandomValues). We use rejection sampling, so every item has exactly the same chance of being picked, with no bias toward the start or end of the list. Nothing is sent to a server, and share links store the exact results so the person you send them to sees the same thing.

Frequently asked questions

Is every number from 1 to 2 equally likely?

Yes. Each number has an exact 1 in 2 chance.

Are 1 and 2 included?

Yes. Both ends of the range can come up.

Can I pick more than one number?

Yes. Set how many numbers you want under Options.

Can I avoid repeats?

Yes. "No duplicates" stops repeats in one draw, and "Exclude already shown" stops repeats across rounds.

Can I get only odd or even numbers?

Yes. Use the Odd or even setting under Options.

Is the 1-2 number generator free?

Yes. It is free, with no sign-up.