Random Name Picker

🔒 Local only Random

Paste a list to draw names, split it into random groups, shuffle the order, or make a gift-exchange draw where nobody gets themselves. Draws can be no-repeat or with replacement, and the list stays in your browser.

The defaults are 30 seat numbers (01 to 30): pick 3, no repeats, so each person has a 3/30 = 10% chance. Switch to group mode for 6 groups of 5. The list, mode and counts are all editable.

Tool area

Result
Your result appears here

What this tool can do

  • Pick one or more names, either without repeats (nobody is drawn twice) or with replacement (every draw uses the whole list).
  • Split the list into a number of groups, or into groups of a given size; group sizes differ by at most one person.
  • Shuffle the whole list into a random order, for example a presentation order.
  • Gift exchange: everyone gives one gift and receives one, nobody draws themselves, and results can stay hidden until each person presses their own button.

How the list is read

One line is one candidate. Leading and trailing spaces (including full-width spaces) are removed, blank lines are skipped, and a name that appears twice counts as two candidates, with a warning under the list. A Tab between two pasted spreadsheet columns becomes one space. Choose the comma option to paste names separated by commas.

  • Quick mode guide: Use “Pick names (no repeats)” for classroom call-outs or raffles; “Random groups” for balanced teams (group sizes differ by at most 1); “Shuffle order” for presentation queues or White Elephant turn order; and “Gift exchange (nobody draws themselves)” for Secret Santa derangement matching.

No-repeat versus with replacement

No-repeat means someone already drawn cannot come up again until you press Restart. With replacement means every draw uses the whole list. For 30 people and 3 picks, a given person is picked with probability 3/30 = 10% without repeats; with replacement the chance of being picked at least once is 1 − (29/30)^3 = 9.67%, and the chance that at least one person appears twice is 1 − (30 × 29 × 28)/30^3 = 9.78% (29.63% for 5 picks, 81.54% for 10).

Groups

The list is shuffled and cut into g groups; n people give groups of floor(n/g) or one more, with the first (n mod g) groups taking the extra person. With a group size k, the number of groups is ceil(n/k) and the people are spread evenly, so 25 people at 4 per group become 7 groups of 4, 4, 4, 4, 3, 3, 3. Constraints such as keeping two people apart are not handled.

Gift exchange: drawing so nobody gets themselves

Choose “Gift exchange (nobody draws themselves)”, paste the participants (at least 2, one per line) and press the button. By default each recipient is hidden until the giver presses their own button. An assignment where nobody gets themselves and everybody receives exactly one gift is a derangement. The page shuffles the whole list into a giver-to-receiver assignment and throws the shuffle away if anybody got themselves; every shuffle is equally likely, so every valid assignment is equally likely. 3 people have 2 valid assignments, 4 people have 9 (24 in total), 5 have 44, 6 have 265, and about 36.79% (1/e) of shuffles are valid for large lists, so roughly 2.7 shuffles are needed on average. The tests enumerate every random choice the code can make for 3 and 4 people and confirm each valid assignment has exactly the same probability.

Drawing in turn and putting your own slip back does not give equal chances: with 3 people (restarting if the last person is left with only their own slip), A→B→C→A has probability 1/3 and A→C→B→A has 2/3. Limits: the tool does not stop A and B from drawing each other (3 of the 9 four-person assignments are two swapped pairs), has no exclusion rules, treats two identical names as two people who may draw each other, and shows every pairing to whoever operates the page. Sources: Wikipedia “Derangement” and OEIS A000166, checked 2026-10-17. For a draw where people take turns choosing a wrapped gift, use “Shuffle order”.

Where the randomness comes from, and its limits

The page uses crypto.getRandomValues, not Math.random(). Values that would favour small remainders are discarded before taking the remainder (the modulo bias described in the Wikipedia article on the Fisher–Yates shuffle), and the order is shuffled with Fisher–Yates, which makes every ordering equally likely if the random source is uniform. MDN states that browsers implement getRandomValues with a pseudo-random generator seeded with enough entropy, and the specification mandates no minimum entropy; the page has not been statistically tested against any browser. The result is decided at the moment you press the button, nothing is stored, and this is not a notarised draw.

Method and sources

How to use

  1. Paste the list, one candidate per line (the default is seat numbers 01 to 30).
  2. Choose pick, group, order or gift exchange and set the numbers (gift exchange needs only the list, at least 2 people).
  3. Press the button; the result is final and can be copied.
  4. Press Restart to clear the drawn record while keeping the list.

Use cases

  • Pick 3 of 30 seat numbers to answer a question, with no repeats.
  • Split a class into 6 groups, then shuffle the presentation order.
  • Eight colleagues swap gifts: paste eight names, choose the gift-exchange mode, and each person presses their own button to see who they drew.

Good to know

  • The list is processed in your browser and is lost when you reload the page.
  • Gift-exchange mode does not stop two people drawing each other, and whoever operates the page can see every pairing.
  • Not suitable for prizes with legal or monetary weight.

FAQ

How do I avoid repeats?
Keep “no repeats” selected (the default). Anyone already drawn stays out until you press Restart, edit the list or reload.
How do I run a gift exchange where nobody draws themselves?
Use the gift-exchange mode: the list is shuffled into a giver-to-receiver assignment and redone if anybody drew themselves. 3 people have 2 valid assignments, 4 people 9, and each is equally likely. It does not stop two people drawing each other.
Is the list uploaded?
No. It is processed in your browser and is gone after a reload.
What if the groups do not divide evenly?
Group sizes differ by at most one person: 31 people in 6 groups is 6, 5, 5, 5, 5, 5.
Is a computer draw fair?
The code adds no bias, but browser randomness is pseudo-random and this page is not a certified or notarised draw.

Privacy & local processing

🔒 This tool runs entirely in your browser. No data is uploaded to any server.

Your list and results are processed entirely in your browser and never uploaded. They disappear when you reload.

Trust & usage note

This tool runs mainly in your browser. Your input is not actively uploaded to a server. Avoid entering highly sensitive data. Results are for reference only.

Disclaimer

For classrooms, small events and everyday decisions; not a notarised draw and nothing is saved.

Last updated:

Embed this tool

Get updates

New tools and practical tips, straight to your inbox. No spam, unsubscribe anytime.