programming-examples/python/Math/Shuffle the following elements randomly.py

5 lines
89 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
import random
nums = [1, 2, 3, 4, 5, 6, 7]
random.shuffle(nums)
print(nums)