import random
number_list = [7, 14, 21, 28, 35, 42, 49, 56, 63, 70]
print ("Original list : ", number_list)
random.shuffle(number_list) #shuffle method
print ("List after shuffle : ", number_list)
import random
random.shuffle(array)
import random
l = list(range(5))
print(l)
# [0, 1, 2, 3, 4]
lr = random.sample(l, len(l))
print(lr)
# [3, 2, 4, 1, 0]
print(l)
# [0, 1, 2, 3, 4]
import random
ary = [8, 7, 1, 67, 77, 108, 801, 800, 777, 131, 414]
new_array = random.sample(ary, len(ary) )
for items in range(100):
print(random.sample(ary, len(new_array)))
# import the random module
import random
# declare a list
sample_list = ['A', 'B', 'C', 'D', 'E']
print("Original list : ")
print(sample_list)
# first shuffle
random.shuffle(sample_list)
print("
After the first shuffle : ")
print(sample_list)
# second shuffle
random.shuffle(sample_list)
print("
After the second shuffle : ")
print(sample_list)