from random import randrange def permutalea(L): sortie=[] for i in range(len(L)): sortie.append(L.pop(randrange(len(L)))) return sortie