CheckRandom

All tools

Secret Santa generator

Draw names, keep couples apart, reveal privately

Type everyone's name and press Draw names. Then reveal each match on this screen, or send each person their own link.

One group per line, such as: Alex and Sam. Nobody on a line draws anyone else on that line.

Ready to draw

Type the names, then press Draw names. Nothing is sent anywhere and no emails are sent.

How it is drawn: your browser's crypto.getRandomValues supplies random 32-bit numbers, and any value that would make one result more likely than another is thrown away and drawn again, so every allowed draw is equally likely; draws where someone gets themselves or an excluded person are thrown away and drawn again.

How the draw works

The page shuffles who gives to whom with your browser's crypto.getRandomValues. If anyone ends up with themselves, or with someone they must not draw, the whole shuffle is thrown away and done again. Starting over each time, rather than patching the problem, keeps every allowed draw equally likely. Before drawing, the page checks that your rules leave at least one possible draw, and says so if they do not.

Small groups

With two people, there is only one possible draw: each buys for the other. With three, there are only two possible draws, both a simple loop, so each person can work out the whole draw from their own name. Swaps are most fun with four or more.

Keeping couples apart

In the second box, put people who should not draw each other on one line, such as "Alex and Sam". Commas also work, and a line can hold a whole household. The rule works both ways.

Telling everyone

Nothing is emailed and nothing leaves your browser. There are two ways to share the result:

To play too, the organizer should use links and send them without opening them. Press Draw names again before sending anything if you want a fresh draw.

Related tools