Mathematics
Draw names, make teams and assign gifts
Draw names from your list without replacement, split people into balanced teams or assign each person one gift recipient, with up to 1000 entries.
Enter your data, press Calculate and export the result if you need it. Editing or resetting clears the current result.
Result
Formula / calculation:
One distinct label per line; 1–1000 entries, at most 100 characters each. Blank lines are ignored; labels are trimmed and normalized to NFC, and duplicates are refused. Add an identifier to distinguish people with the same name. The count means selected entries or number of teams. Gift mode needs at least two people; every recipient occurs once, with no self gift. Reciprocal gifts are allowed; there is no couple exclusion, private delivery or secrecy guarantee. The complete assignment is visible and included in downloads. Browser cryptographic random words use rejection sampling and Fisher–Yates; draws and gift retries are bounded and an unavailable random source yields an error. Calculating again makes a new draw; exports retain the exact displayed draw. No list is transmitted or stored persistently.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
One distinct label per line; 1–1000 entries, at most 100 characters each. Blank lines are ignored; labels are trimmed and normalized to NFC, and duplicates are refused. Add an identifier to distinguish people with the same name. The count means selected entries or number of teams. Gift mode needs at least two people; every recipient occurs once, with no self gift. Reciprocal gifts are allowed; there is no couple exclusion, private delivery or secrecy guarantee. The complete assignment is visible and included in downloads. Browser cryptographic random words use rejection sampling and Fisher–Yates; draws and gift retries are bounded and an unavailable random source yields an error. Calculating again makes a new draw; exports retain the exact displayed draw. No list is transmitted or stored persistently.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- One distinct name per line
- Anna Ben Cara Dieter Zoë Łukasz
- Draw mode
- Draw without replacement
- Number selected / number of teams
- 2
Result
- Assigned / selected entries
- 2
Frequently asked questions
What can the draw names, teams and gifts tool do?
Using your own list, it can draw names without replacement, make balanced teams or assign each person one gift recipient.
How many names can I enter?
Enter one distinct label per line, with 1 to 1000 entries and at most 100 characters each. Blank lines are ignored and duplicates are refused, so add an identifier to tell people with the same name apart.
Can someone be assigned to give a gift to themselves?
No. In gift mode every recipient occurs once with no self gift, and at least two people are needed. Reciprocal gifts are allowed and there is no couple exclusion.
How random is the draw?
It uses browser cryptographic random words with rejection sampling and Fisher-Yates shuffling. If a random source is unavailable the tool returns an error.
Will the gift assignment stay secret?
No. The complete assignment is visible and included in downloads, and there is no private delivery or secrecy guarantee.
What happens if I calculate again?
Calculating again makes a new draw. Exports keep the exact draw that is displayed.
Is my list stored or sent anywhere?
No list is transmitted or stored persistently.