Random Name Picker – Pick a Name, Draw Winners or Make Random Teams

Paste or type a list of names, one per line or separated by commas, and press the button.

The picker draws one name, or as many winners as you ask for, with a short draw animation. It can also take each picked name off the list, so nobody gets called twice, split the whole list into random teams, or put everyone in a random order for turns and presentations. Teachers use it to choose who answers next, streamers and shop owners to draw giveaway winners, and offices to split people into groups. The list stays in your browser for next time and is only added to the link if you tick the box.

How it works

Every draw uses your browser's cryptographic random generator, crypto.getRandomValues, the same source used to make passwords and encryption keys. It is not seeded from the clock and cannot be predicted. Turning a random number into a fair pick needs one more step. The generator gives a 32-bit number, between 0 and 4,294,967,295. Taking the remainder after dividing by 25 would favor a few names very slightly, because 4,294,967,296 is not a multiple of 25. So the picker throws away the 21 highest values (4,294,967,275 and above) and draws again when it lands there. What is left divides evenly, and each of the 25 names has exactly the same chance. To pick several winners, the picker runs a partial Fisher-Yates shuffle: it swaps a random name into first place, then a random name from the rest into second place, and so on. A position can only win once per draw. If a name appears twice in the list, it has two entries, like two raffle tickets; use Remove duplicates first if you want one entry per person. Teams are made by shuffling the whole list with the same method and dealing the names out. When you ask for a number of teams, the sizes differ by at most one. When you ask for people per team, the picker makes as many full teams as fit and spreads the leftover people over them, so you never get a team of one next to teams of four.

Worked example

Ms. Carter has a class of 25 and pastes the names in. She wants someone to present first, so she picks one name. Each student has a 1 in 25 chance, which is 4%. She ticks "Take picked names off the list" before the next draw. Now 24 names are left, so each has a 1 in 24 chance, about 4.17%, and the first presenter cannot come up again. For group work she switches to Make teams, chooses "People per team" and types 4. Twenty-five does not divide by 4, so the picker makes 6 teams: one of 5 and five of 4. It shows the plan before the draw: 6 teams of 5 + 4 + 4 + 4 + 4 + 4. On Friday she runs a giveaway on the class blog: 120 families entered and there are 3 prizes. She sets How many to 3, and each family has a 3 in 120 chance of winning, which is 2.5%.

Frequently asked questions

Is the random name picker really random?

Yes. It uses crypto.getRandomValues, the browser's cryptographic generator, and throws away the few values that would make some names slightly more likely. Every name on the list has the same chance in every draw.

Can I pick more than one winner at once?

Yes. Set How many to the number of winners. They are drawn without repeats, in order, so the first name can be the main prize and the next ones the runners-up.

How do I stop the same name being picked twice?

Tick "Take picked names off the list". Each winner is removed from the list after the draw, so the next draw only uses the names that are left.

How are the teams made?

The whole list is shuffled and dealt into teams. With a number of teams, sizes differ by at most one. With people per team, leftover people join existing teams: 10 names in teams of 3 gives teams of 4, 3 and 3.

Is my list saved or uploaded?

It is saved only in your browser's local storage so it is there next time, and nothing is sent to a server. It goes into the link only if you tick "Keep the list in the link", which is handy when you want someone else to run the same draw.

Can I use it for a giveaway or raffle?

Yes. Paste the entrants, one per line, and draw the number of winners. If people could enter more than once, decide first whether extra entries count: keep them for more tickets, or press Remove duplicates for one entry each.