Random Team Generator

Enter a list of names (one per line) and a number of teams to randomly and evenly split participants into teams.

Inputs
Results
Teams
Team 1: Jamie, Alex, Casey, Morgan Team 2: Jordan, Taylor, Avery, Riley

Try an example