Assume I have the following list:
foo = [\'a\', \'b\', \'c\', \'d\', \'e\']
What is the simplest way to retrieve an item at random from thi
You could just:
from random import randint foo = ["a", "b", "c", "d", "e"] print(foo[randint(0,4)])