programming-examples/python/Math/Shuffle the following elements randomly.py
2019-11-15 12:59:38 +01:00

5 lines
89 B
Python

import random
nums = [1, 2, 3, 4, 5, 6, 7]
random.shuffle(nums)
print(nums)