Randomly select element from python list

mylist = ['z', 'y', 'x', 'v', 'u']
from random import choice
print choice(mylist)

Enjoyed this post? Share it!