Random Name Picker
Press Draw to pick 1 name.
A random name picker for classrooms, teams and giveaways
Draw Lots picks one or more names at random from a list you paste in. Teachers use it to call on students or set presentation order, team leads to assign tasks or reviewers, and organizers to choose giveaway winners. It replaces slips of paper in a hat with a result anyone can repeat and check.
The list and settings are saved in this browser's local storage, so they are still there when you return.
How to run a draw
- Enter candidates one per line. Empty lines and lines starting with # are ignored. Example names loads a sample list, Shuffle reorders the lines, Clear empties the box.
- Set Names to draw, up to the number of candidates.
- Choose Equal chances for equal chances, or Weighted and write Name * N to give an entry weight N, for example Alice * 2.
- Leave No repeats on so each line is drawn at most once, or turn it off to allow repeats.
- Optionally enter a Seed for a reproducible result, then click Draw. Copy results with Copy, which numbers them.
How the picker selects names
Each pick works like a wheel: every candidate gets a segment as wide as its weight (1 in Equal chances mode). The tool takes a random number between 0 and the total weight, adds up weights down the list, and selects the candidate whose segment contains the number.
With No repeats on, the selected candidate is removed before the next pick. In Equal chances mode this equals shuffling the whole list and taking the first k names, so every ordered result is equally likely. With No repeats off, each pick uses the full list.
Without a seed, random numbers come from crypto.getRandomValues(), the browser's cryptographically secure generator. With a seed, the text is hashed (FNV-1a) to start a Mulberry32 generator, so the same seed, list, line order and settings always give the same result.
Shuffle reorders the lines with a Fisher–Yates shuffle using the secure generator. Order does not affect anyone's chance in an unseeded draw, but in a seeded draw it changes the result.
Worked example: the odds of being picked
A class of 30, Equal chances, No repeats on, Names to draw 3: a given student has a 3/30 = 10% chance of being picked and 1/30 ≈ 3.3% of being first.
Weighted list Alice * 2, Bob, Charlie: total weight 4, so Alice has 50% on the first pick and Bob and Charlie 25% each. Drawing 2 without repeats, Alice is left out only if Bob and Charlie are both picked: 1/4 × 1/3 + 1/4 × 1/3 = 1/6. So Alice appears in 5/6 ≈ 83.3% of draws and Bob and Charlie in 7/12 ≈ 58.3% each. Double weight doubles the single-pick chance, not the chance of being in a multi-name result.
200,000 runs of the tool's draw function gave 83.5% and 9.96% for these two cases.
Limitations of this picker
- Duplicate lines count as separate entries: a name entered twice has double the chance and can be drawn twice even with No repeats on.
- Names to draw cannot exceed the number of candidates, even with repeats allowed.
- Name * N only works in Weighted mode; weights are whole numbers and 0 counts as 1.
- Seeded draws use Mulberry32, which is repeatable but not cryptographically secure. Fix the list before the seed is chosen.
- There is no draw history; each draw replaces the last, so copy results you need to keep.
Questions about random drawing
Is the random name picker truly random?
Without a seed, every pick uses a cryptographic random generator, and in Equal chances mode each remaining line has the same chance. Check the list for typos and duplicates first.
How can I show a draw was not rigged?
Publish the final list in order, let participants choose a seed, then draw. Anyone entering the same list, seed and settings gets the same result.
Can I use it to split people into teams?
Yes. Keep No repeats on, set Names to draw to the number of people and draw. Split the resulting order into groups: the first names form team 1, the next team 2, and so on.
How do I pick a giveaway winner from a list of entrants?
Paste one entrant per line and remove duplicates if each person should have one chance, since a name listed twice is two entries. Set Names to draw to the number of winners, keep No repeats on and click Draw. To make the result checkable, publish the list first and use a seed announced in advance.
Why did the same name come up twice?
Either No repeats is off, so every pick uses the full list, or the name appears on two lines. With No repeats on, each line can be drawn only once, but two identical lines are still two separate entries.
Related tools
Related articles
- How Long Should a Password Be? Entropy and Passphrases
How to generate strong passwords and passphrases under 2026 guidance: length over complexity, entropy math, EFF wordlists, and common mistakes that weaken them.
- UUID v4 vs v7 vs v1: Which Version to Use
When to use UUID v4, v7, or v1, and why v7 is the right default for new database tables. Bit layouts, practical recipes, and common pitfalls.
- Understanding Randomness in Web Development
Math.random() versus crypto.getRandomValues(): how each generator works, which one to use for tokens, passwords and raffles, and how to shuffle without modulo bias.