>From the Python 2.4 quickreference:

d.popitem()      Removes and returns an arbitrary (key, value) pair from
d

If this isn't random enough, then you can generate a random number in
range(len(d))

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

Reply via email to