Hi,there. How can I choose a key in dictionary randomly?

Say, random.choice() in lists,

or in lists:
lists = [1,2,3,4]
position = random.range(len(lists))
word = lists[position]

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to