How can I select a random entry from a dictionary, regardless of its key-values?
a = random.choice(d.keys()) a, d[a]
Or even: key, value = random.choice(d.items())
or: value = random.choice(d.values())
--Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list