This is a quick and dirty tool that I (Paul Gowder) banged out to match my students into "virtual study groups" in order to do peer discussion exercises/think-pair-share/etc. virtually while the campus is closed due to coronavirus. It's meant to replicate a casual "go talk to your neighbors about X and then report back" classroom technique.
The code asks for three things from you: (1) a list of student names (or email addresses, or nicknames, or whatever), one per line, in the text box, (2) a number for the size of groups you want (e.g., groups of 2 students, groups of 3 students), and (3) what to do if the number of students doesn't divide evenly into the group size, namely, (a) create a few groups that have one extra student, or (b) make a smaller group with the leftover people. It will then generate a list of groups suitable to paste into an e-mail or whatever.
List of students goes here, one per line
Number of students per group:
What to do when the number of students doesn't evenly divide into the number of students per group?
Output below, one group per line: