Class team mixer-upper!
scramble.js reads a JSON file containing an array of student names and scrambles them up into random teams of two. It even makes a team of three in the event of an odd number of students! Wow!
Clone or download off of github, then
cd into the folder and run
$ npm install
$ node scramble.js CLASSFILE
The repository includes JSON files with the names of the students in the Doc and Marty classes of the Summer 2017 DeLorean cohort in New York City.
$ node scramble.js marty.json Jason & Raj Young T & Alex Julia & Daniel Mitchel & Carly Militsa & Jake Ryan & Joseph Tom & Brandon Oswaldo & Mark
$ node scramble.js doc.json Bianca & Franklin Joe & Dennis Amidou & Dan Rana & Ivan Mark & Aury Hao & Karen Ash & Seye Briseida & Philip
scrambler is free and unencumbered software released into the public domain. See UNLICENSE for details.