Names are shuffled and distributed round-robin: the first goes to team 1, the second to team 2, and so on, looping back to team 1 at the end of each pass. This keeps all teams the same size, or differing by at most one person when the total isn't divisible.