Let\'s say I have a list of colours, colours = [\'red\', \'blue\', \'green\', \'purple\'].
I then wish to call this python function that I hope exists, ra
from random import shuffle
def walk_random_colors( colors ):
# optionally make a copy first:
# colors = colors[:]
shuffle( colors )
while colors:
yield colors.pop()
colors = [ ... whatever ... ]
for color in walk_random_colors( colors ):
print( color )