1 2 3 4 5
from random import shuffle foo = [1, 2, 3, 4] shuffle(foo) print(foo) # [1, 4, 3, 2] , foo = [1, 2, 3, 4]