Random Group Generator

Split a list into random groups.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste a list of names and choose how many people each group should have. The tool shuffles the list and cuts it into groups of that size.

How to use

1
Step 1
Enter the names, one per line.
2
Step 2
Set the group size from 2 to 10.
3
Step 3
Press Make groups.

How it works

Names are shuffled with the browser's cryptographic random source and then cut into consecutive groups of the size you set. If the number of names does not divide evenly, the last group is smaller. With 10 names and a group size of 3 you get groups of 3, 3, 3 and 1.

number of groups = ceil(names ÷ group size)

Worked example

Ten students in groups of three

Input
10 names, group size 3
Output
Four groups: 3, 3, 3 and 1
Walkthrough
ceil(10 ÷ 3) = 4 groups, and the last has the one remaining name.

Limitations

  • The last group can be as small as one person.
  • Group size must be between 2 and 10.
  • No rules to keep people apart or together.

Questions

How do I make random groups of 4?
Paste the names, set the size to 4 and press Make groups.
What if the numbers do not divide evenly?
The last group is smaller.
How is this different from the Random Team Generator?
Here you set the size of each group; there you set the number of teams.

Features

  • Choose group size
  • Fair shuffle
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Does Pomodoro actually work for studying?

    Karl Avillo, MD

    Evidence-minded take on timed work intervals.

    Watch on YouTube
  • Learn JSON - Full Crash Course

    freeCodeCamp.org

    Structured lists and pickers often store JSON configs.

    Watch on YouTube