>>> from random import shuffle >>> L=[1,2,3,5] >>> shuffle(L) >>> L [1, 3, 2, 5]