# random split a list such as the number of a class import random # equal random split a list def randomEqualSplit(mylist, n): resultList = [] # create result list part = round(len(mylist)/n) # calculate the part for i in range(n): # for every part e