Pilih secara acak dari daftar di loop
>>> num = [1, 2, 3, 4, 5, 6]
>>> while len(num) > 0:
... n = random.choice(num)
... print("selected : ", n)
... num.remove(n)
... print("num is now: ", num)
...
selected : 3
num is now: [1, 2, 4, 5, 6]
selected : 5
num is now: [1, 2, 4, 6]
selected : 4
num is now: [1, 2, 6]
selected : 1
num is now: [2, 6]
selected : 6
num is now: [2]
selected : 2
num is now: []
G ML