Shuffle Array Elements using Python

random module

import random

data = [10, 3, 17, 50, 15]
random.shuffle(data)

print(data)

Leave a Comment

Cancel reply

Your email address will not be published.