Run
import random #initialize a list listA = [2, 8, 4, 3, 1, 5] #shuffle list random.shuffle(listA) print(listA)
Output