demo_ref_random_shuffle.py:
import random mylist = ["apple", "banana", "cherry"] random.shuffle(mylist) print(mylist)
➜ begtut>python demo_random_shuffle.py