GamesFree · no sign-in

Random group generator

Paste your class list, choose how many groups, and get fair random groups. Keep certain students apart, mix classes evenly, and put the groups on the projector.

22 names

One per line, or separated by commas.

Split by

2 groups of 6, 2 groups of 5.

Rules (optional)
Shuffled with your browser's cryptographic random generator.

Saved lists

Save up to 10 lists, like “Period 3”, with their rules. They stay in this browser only.

Groups for the classroom

Paste the names one per line, or straight from a spreadsheet column, and choose the number of groups. When the class doesn't divide evenly, the extra students are spread out so no group is more than one bigger than another, and the summary says exactly how it worked out, like “2 groups of 6, 2 groups of 5”.

The rules handle the things teachers juggle in their heads. “Keep apart” stops two students who shouldn't work together landing in the same group. “Keep together” pairs a student with a buddy or helper. Add a tag like “#7A” after each name to spread two classes evenly across the groups, and tick off anyone who's absent today without deleting them from your list.

Save the list with its rules as “Period 3” and it's there next lesson, in this browser only. Lock a group that's working well and reshuffle the rest, or drag a student to another group by hand.

How it works

  1. Paste the names, one per line or separated by commas. Repeated names are flagged but kept, in case two people share a name.
  2. Choose “Number of groups” or “People per group”. When it doesn't divide evenly, the extras are spread so sizes differ by at most one.
  3. Turn on any rules you need, then press Make groups. If the rules can't all be met, you get a message saying which ones clash.
  4. Drag people between groups to fix anything by hand, lock a group you like, and press Reshuffle for the rest.
  5. Copy the groups as text, export a CSV, print one group per block, or open the projector view for the class.

Need just one name, like who answers next? Use the wheel spinner to pick a name at random; its list can be pulled in here with “Use the wheel's list”. More free tools for teachers are on the classroom tools page.

Questions people ask

How do I split a class into random groups?

Paste the class list, one name per line, choose “Number of groups” and press Make groups. Press Reshuffle for a different split. Each student has the same chance of being in each group.

Can I stop two students being in the same group?

Yes. Turn on “Keep apart” and add a line with their names separated by a comma, like “Ava, Ben”. A line with three names keeps all three in different groups. If the rules can't all be met, the page says which ones clash instead of ignoring one.

How do I mix two classes or grades evenly?

Add a tag after each name, like “Ava #gr5” or “Ben #gr6”, and turn on “Balance by tag”. Each tag is spread across the groups so the counts differ by at most one.

Is it really random?

Yes. The shuffle uses your browser's cryptographic random number generator (crypto.getRandomValues) with a Fisher–Yates shuffle, and avoids the shortcut that slightly favours some positions. With no rules on, every person has the same chance of being in each group.

Are the names saved or sent anywhere?

No names leave your browser. The list you're working on and up to 10 saved lists are kept in this browser's local storage, so they're there next time on this device. Names are never put in the page address or a share link. Delete a saved list with its × button, or clear your browser's site data.

Can I use the list from the wheel spinner?

Yes. “Use the wheel's list” copies the names you last had on the wheel spinner in this browser into the box.

More ways to split a list