Skip to content
Tejo Tools
Search
Menu
Processed on your device

Random name picker

Paste a list, one name per line, and pick one or more at random. The draw is made on your device.

One per line

Generated values

Your values will appear here.

Last updated

What it does

The random name picker chooses names from a list at random. Paste or type your list with one entry on each line, say how many you want, and the picks appear straight away.

The page opens with a list of six first names and one of them already picked. Edit the list or change How many to pick and a new draw appears at once. The picks are shown in the order they were drawn, and no line is picked twice in one draw.

How to use it

  1. Type or paste your entries in the box, one on each line.
  2. Set How many to pick, from 1 up to the number of entries.
  3. Read the picks under the settings. The line under the count says how many entries they came from.
  4. Select Copy all for every pick, one per line, or Copy next to a single one.
  5. Select Regenerate, or press Ctrl+Enter (⌘+Enter on a Mac), for a new draw from the same list.

Blank lines are ignored, and spaces at the start and end of a line are trimmed. A name that appears twice is two entries. The list can hold up to 1,000 entries. The page remembers nothing you type: a reload brings the six sample names back. How many to pick starts at 1 each time too.

How it works

Each pick is drawn from your browser’s cryptographic random number generator, the same source used for encryption keys. The generator reads the browser’s random bytes 4 at a time, as a 32-bit value from 0 to 4,294,967,295. A plain remainder (modulo) would favour some entries, because 4,294,967,296 doesn’t divide evenly by most list sizes. So the generator sets aside the few values at the very top that would cause that: for a list of six, the last 4 values. If one of those comes up it’s skipped and the next one is used. What’s left divides evenly, so every entry has exactly the same chance.

To pick several entries, the generator takes them one at a time from the lines still left, a partial Fisher–Yates shuffle. Each pick is made with the same unbiased step over what’s left, so every possible ordered set of different lines is equally likely.

Good to know

Privacy

The list is read and the picks are drawn in your browser, on your device. Nothing is sent to a server, and neither your list nor the picks are stored. Nothing you type is kept, not even in this browser’s storage.

Advertisements

Frequently asked questions

What happens if a name is in the list twice?

Each line is its own entry, so a name that appears twice has two chances of being picked. That is useful when someone should count double, such as two raffle tickets. The same line position is never picked twice in one draw, but a name on two lines can come up twice. If you want each name to count once, remove the repeat before you draw.

Can I pick several winners at once?

Yes. Set How many to pick to the number of winners, up to the number of entries in your list and at most 1,000. The names are shown in the order they were drawn, so the first one is the first winner. Nobody is picked twice in one draw, because each pick is taken from the lines still left. Asking for more picks than you have entries shows an error at How many to pick that says how many you can ask for.

How do I shuffle a whole list?

Set How many to pick to the number of entries in the list. The page then shows every name once, in a random order, which makes a fair batting order, seating plan or presentation order. Copy all puts the shuffled list on your clipboard, one name per line. To put people into teams, shuffle the list and cut it into groups of the size you need.

Is the pick really fair?

Yes. The page asks your browser's cryptographic random number generator for random values and turns them into a position in your list without favouring any line. The first name has exactly the same chance as the last, and the order you typed the names in makes no difference. Nothing is sent to a server, so nobody else can see the list or change the result. It can't be checked afterwards by someone who wasn't watching, so for a public giveaway, draw it on screen where everyone can see it.

Advertisements