Random group generator for classrooms, with topics

With this random group generator, splitting a class takes ten seconds and nobody complains about the same old cliques: paste the names, set the number of groups (or the people per group) and draw. If there are topics for the project or presentation, the tool also draws which topic each group gets.

Source: W3C Recommendation, W3C Web Cryptography API – getRandomValues(). Updated: .

Or paste them on one line, separated by commas. Up to 200 names.
Number of groups or people per group, depending on the option above.
Each group is given a topic by a separate draw. Leave empty to draw the groups only.
My ToolboxYour inputs are saved in this browser only.

Ready: press “Make groups”.

Result

Result
Ready: press “Make groups”.

How it is calculated

The random group generator shuffles your list and deals the names out like cards, so the groups are as even as possible and nobody picks their own team. A second, independent draw can hand each group a topic.

How to make random groups

  1. Paste the names of the class, one per line; you can copy them from a spreadsheet or a chat group.
  2. Choose how to split: by number of groups (say, 4 groups) or by people per group (say, groups of 5).
  3. If you like, type the topics, one per line.
  4. Press Make groups. The table shows each group, its topic and its members.
  5. Post it to the class chat with Send via WhatsApp: the link opens the same result for everyone.

How the groups are formed

First the names are shuffled. Then they are dealt out in turn: the first name drawn goes to Group 1, the second to Group 2, and so on, starting again at Group 1 after each round. That keeps the groups balanced: the largest and the smallest never differ by more than one person.

ClassRequestResult
12 people4 groups4 groups of 3
14 people4 groups2 groups of 4 and 2 groups of 3
30 peoplegroups of 4 people8 groups: 6 of 4 and 2 of 3
35 peoplegroups of 5 people7 groups of 5

With “people per group”, the number you enter is the maximum: 30 people in groups of 4 do not divide evenly, so 8 groups are formed and nobody ends up alone in a leftover group.

Random groups with topics

If you fill in the topic list, a second draw is made, independent of the first: the topics are shuffled and Group 1 receives the first, Group 2 the second, and so on. Nobody gets to choose the “easy” topic.

A “topic” can be anything: chapters of the set text, countries for the culture fair, presentation dates, lab stations or stops on a scavenger hunt.

A clean draw everyone sees the same way

The shuffle uses the browser’s secure random number generator and the Fisher–Yates algorithm: every possible order is equally likely. The names are not sent to a server. The result travels in the link; if someone changes the list afterwards, the page asks for a new draw instead of showing different groups to different people.

For sides balanced by skill use the random team generator; for pairs, the random partner generator; for the order of presentations, randomize a list; and to choose a single person, the random name picker.

Frequently asked questions

How do I make random groups?

Paste the names, one per line, enter how many groups you want (or how many people per group) and press “Make groups”. The names are shuffled and dealt out evenly.

What if the class does not divide evenly?

The groups differ by at most one person. 14 people in 4 groups give two groups of 4 and two groups of 3.

Can I set the group size instead of the number of groups?

Yes. Choose “By people per group”. The number is the maximum per group: 30 people in groups of 4 become 8 groups, six of 4 and two of 3.

Can the generator assign topics to the groups?

Yes. Type the topics one per line. They are shuffled separately and handed to the groups in order.

Are the groups really random?

Yes. The order is produced by a Fisher–Yates shuffle with the browser’s cryptographic random number generator, so every order is equally likely.

How do I share the groups with the class?

“Send via WhatsApp” or “Copy result” creates a message with the groups and a link that opens exactly this draw.

How many names can I enter?

Up to 200, one per line or separated by commas.

Can I keep certain students apart?

Not automatically. Draw again, or move a name by hand after the draw – and tell the class if you do.

Sources and legal basis

As of: · Editorial policy

Related tools