mardi 10 septembre 2019

How can I equaly devide a name list into 2 or 3 groups and print them out

I have a name list of 8 names that i want to divide in to to groups of 4 each.

List = name1, name2, name3, name4, name5 ,name6 ,name7 ,name8;

random(list);

System.print
{
Team A = name 1, name 2
Team B = name 3, name 4
}

etc.




Aucun commentaire:

Enregistrer un commentaire