Every dayRandom Generators

Random List
picker.

Paste names or options, then draw winners or a fair order, with the odds for each entry.

How it's worked out

Each line, or each part between commas, is one item. A comma inside double quotes stays part of the item, as in a spreadsheet file, and blank lines are skipped.

To pick, the tool draws from the items not yet taken, one at a time. This is the Fisher-Yates method, which Knuth describes as algorithm 3.4.2P: each step swaps an item with a random one from the part of the list still in play. A winner leaves the pool, so one draw never names the same item twice.

chance for one entry\displaystyle \text{chance for one entry}=picksentries\displaystyle {}= \frac{\text{picks}}{\text{entries}}

With 20 entries and 3 picks, every entry has a 15% chance of being among them. A shuffle is the same method run to the end of the list, so all 3,628,800 orders of ten items are equally likely.

The random numbers come from your browser’s cryptographic generator, crypto.getRandomValues. A raw number that would make some positions slightly more likely is thrown away and drawn again, so no item is favored.

When a name has more than one entry, its chance is one minus the chance that every pick misses all of its entries.

chance\displaystyle \text{chance}=1−(n−mk)(nk)\displaystyle {}= 1 - \frac{\binom{n - m}{k}}{\binom{n}{k}}

Here n is the number of entries, m is how many belong to that name, and k is the number of picks. The share link holds the positions that were drawn, so it reopens this exact result.

Worked examples

Sam draws a giveaway winner and two alternates

Sam closes entries at 20 people and asks for 3 picks: the first is the winner and the next two are alternates in case the winner does not reply. The draw gives Eli, then Ivan, then Quinn.

Each entrant had a 15% chance of being one of the three, and a 5% chance of being the winner. There are 1,140 possible groups of three. Sam posts the link to the result, which opens this draw rather than a new one, and keeps the draw log with its time.

Open this example in the tool

Ms. Rivera sets a speaking order for eight students

Shuffling the eight names gives Chen, Freya, Gabe, Emil, Dina, Hiro, Amir, Bella. Chen speaks first and Bella speaks last.

This order is one of 40,320. Every student had the same 1 in 8 chance of going first, and the same chance of any other place. A shuffle gives the same result as picking all eight one at a time.

Open this example in the tool

A club raffle where two people bought two tickets

The club sold 12 tickets. Dana and Geo bought two each, so the list holds their names twice, and repeat entries are counted. Two prizes go to Fay and Geo.

With two tickets, Dana had a 31.8% chance of winning at least one prize. Someone with one ticket had 16.7%. Two tickets do not quite double the chance: simply doubling would count twice the case where both of her tickets win.

Open this example in the tool

Reading your result

Chance a name with repeat entries is picked at least once, 3 picks from 100 entries
Entries for that nameChance
13%
25.9%
514.4%
1027.3%

The order matters for alternates. Picks are listed in the order drawn. Decide before the draw what each place means, such as winner first and alternates after, so nobody can argue about it later.

Ignore duplicates or count them. With duplicates ignored, a name typed twice by mistake has one chance, which suits a class list. Counting them gives a name one chance per entry, which suits a raffle with several tickets.

A result from a link is a record, not a fresh draw. It shows what was drawn, but it cannot show that it was the first draw anyone made. To make a draw fair in the eyes of others, draw once, live or on a recording, and share the link to that result.

Common mistakes

  • Drawing again until you like the result. Only the first draw after the list is final counts. The draw log records every press with its time, which makes repeated draws easy to spot.
  • Editing the list after the draw. A changed list changes the positions, so an old result no longer fits. The tool then makes a fresh draw and says so.
  • Forgetting that a picked name can come back. Each new draw starts from the full list. Remove picked items from the list if everyone should get a turn before anyone repeats.
  • Pasting names with commas inside. Smith, Jo reads as two items, Smith and Jo. Put such a name in double quotes, or keep one name per line with no commas.
  • Running a prize draw without checking the rules. Giveaways on social platforms and paid raffles often have rules about entry, eligibility and witnesses. Check the ones that apply to you before you draw.

Questions people ask

The draw uses your browser’s cryptographic generator with rejection sampling, so every entry has the same chance and the code favors no one. The person running the draw can still press again until they like the answer. The draw log keeps every press with its time, so share that along with the result.

Sources