Exactly the number of groups you need
A room with four discussion tables needs four groups, even when attendance changes. The tool first gives each group an equal base number of people, then gives one extra person to each of the first few groups until the remainder is used. Group membership is randomized before those sizes are filled.