Generation

generate functionSat, 12 Nov 2022

Randomize an array of words

import random words = ["giraffe", "the", "blah", "aardvark", "potato"] def randomize_words(words): random.shuffle(words) return words randomize_words(words)

Questions about programming?Chat with your personal AI assistant