Random Group Generator

Paste your class list, pick how many groups (or people per group) you want, and press Make groups to get fair, balanced random groups. For example, a class of 24 split into 6 groups gives 6 groups of 4, and 25 students make one group of 5 and five groups of 4.

  • Free
  • No sign-up
  • Projector mode
  • Names stay on your device

24 names. Saved in this browser only.

Split by

24 people in 6 groups of 4.

  1. Group 1 (4)

    • Malik
    • Tariq
    • Liam
    • Kwame
  2. Group 2 (4)

    • Chloe
    • Santiago
    • Zara
    • Jamal
  3. Group 3 (4)

    • Sofia
    • Fatima
    • Mateo
    • Ravi
  4. Group 4 (4)

    • Mei
    • Ellie
    • Aisha
    • Ingrid
  5. Group 5 (4)

    • Oliver
    • Yuki
    • Amara
    • Kenji
  6. Group 6 (4)

    • Lucia
    • Nadia
    • Diego
    • Hannah

How to make random groups

  1. Type or paste the names into the box, one name per line.
  2. Choose Number of groups or People per group and enter a number.
  3. Press Make groups. The names are shuffled and dealt into balanced groups.
  4. Press Shuffle again for a new mix, Copy groups to share them, or Projector mode to show them full screen.

What is a random group generator?

A random group generator takes a list of names and splits it into groups by chance. Teachers use it to mix up seating, lab partners, project teams and PE teams quickly and fairly, without students choosing their friends or anyone feeling picked last.

How does this group maker split a class?

The tool shuffles the whole list, then deals the names into groups so the sizes are as even as possible. The leftover people are spread one per group, so no two groups ever differ by more than one person.

group size = people ÷ groups, rounded down; the remainder r gets +1 in r groups

For example, 26 students in 6 groups: 26 ÷ 6 = 4 remainder 2, so two groups have 5 people and four groups have 4. In people per group mode, the tool makes enough groups that none is bigger than your number: 26 students in groups of 4 needs 26 ÷ 4 = 6.5, rounded up to 7 groups (five groups of 4 and two groups of 3).

Is it fair?

Yes. The shuffle uses the Fisher–Yates method, which gives every possible order of the list the same chance. The random numbers come from your browser's cryptographic generator (crypto.getRandomValues), the same source used for security, rather than a predictable pattern. Each press of Shuffle again starts a brand new shuffle.

Group sizes for common class sizes

This table shows how many groups of each size you get in people per group mode. "6 × 4, 1 × 3" means six groups of 4 and one group of 3.

Class sizeGroups of 3Groups of 4Groups of 5
206 × 3, 1 × 25 × 44 × 5
248 × 36 × 44 × 5, 1 × 4
257 × 3, 2 × 24 × 4, 3 × 35 × 5
279 × 36 × 4, 1 × 33 × 5, 3 × 4
3010 × 36 × 4, 2 × 36 × 5
3210 × 3, 1 × 28 × 44 × 5, 3 × 4

Tips for using random groups in class

  • Show it live. Press Projector mode so the class sees the shuffle happen. It makes groups feel fair because nobody chose them.
  • Remove absent students first. Delete their lines (they come back next time if you paste the full list again).
  • Use first names only. It keeps the list private and short enough to read from the back of the room.
  • Need to separate two students? Shuffle again until they land in different groups. A new shuffle takes a second.

Need some quick numbers for your groups? The factor calculator lists every way a class size divides evenly, such as 24 = 4 × 6 = 3 × 8.

Frequently asked questions

How do I make random groups from a class list?

Paste your names into the box, one per line, choose a number of groups or a number of people per group, and press "Make groups". Press "Shuffle again" for a new mix, or "Copy groups" to paste the result into a document or chat.

Is the random group generator really random?

Yes. It shuffles the list with the Fisher–Yates algorithm using your browser's cryptographic random number generator, so every possible order of names is equally likely. No one is placed on purpose.

What happens if the class does not divide evenly?

The leftover people are spread one per group, so group sizes never differ by more than one. For example, 25 students in 6 groups gives one group of 5 and five groups of 4.

What is the difference between "number of groups" and "people per group"?

Choose "number of groups" when you know how many tables or teams you need, such as 6 groups. Choose "people per group" when the activity needs a set size, such as pairs or groups of 4. With people per group, no group is bigger than the number you pick.

Can I use it as a random team generator for PE or games?

Yes. Choose 2 groups for two teams, or more for a tournament. Projector mode shows the teams in large text so the whole class can see them.

Is my class list saved or shared?

Your list is saved only in your own browser so it is there next lesson. It is never uploaded. To keep student privacy, you can use first names or initials only.

Last reviewed November 27, 2026 by the ChalkStation team.