Choose a number, as that number should be the number of teams you wish to form. Then tell people to start counting repeatedly, until you've run out of people. For example, 20 people want to be split into five groups, and each person should count from 1 to 5, then repeat again and again (a total of 4 times) until everyone is assigned to a team!