Search code examples
pythonarraysrandomshuffle

Shuffle an array with python, randomize array item order with python


What's the easiest way to shuffle an array with python?


Solution

  • import random
    random.shuffle(array)