select random entry from dictionary

gaudetteje at gmail.com gaudetteje at gmail.com
Tue Mar 8 17:28:54 EST 2005


Peter,

Agreed... which is why I said the 'random' module should be imported if
more randomness is required.

I only mentioned d.popitem() first in case Tores' application didn't
need a psuedo-random item and instead he was looking to pull any value
without randomness.




More information about the Python-list mailing list