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: Alex, Avery, Jamie, Taylor Team 2: Casey, Morgan, Jordan, Riley

Try an example