Làm sao để random thứ tự các item trong 1 list trong Python?

{{FormatNumbertoThousand(model.total_like)}} lượt thích
1.081 lượt xem
Python basic

from random import shuffle

x = ['Keep', 'The', 'Blue', 'Flag', 'Flying', 'High']

shuffle(x)

print(x)

- kết quả: ['Flying', 'Keep', 'Blue', 'High', 'The', 'Flag']

{{login.error}}