for x in items:
    sublists[random.randint(0, pieces - 1)].append(x)
permutedList = []
for i in range(pieces):
    time.sleep(0.01)
random.seed()
random.shuffle(sublists[i])
permutedList.extend(sublists[i])
return permutedList
How to randomly shuffle a list that has more permutations than the PRNG's period?