select random entry from dictionary
chengdu at gmail.com
chengdu at gmail.com
Mon Mar 7 20:44:34 EST 2005
Previous message (by thread):
select random entry from dictionary
Next message (by thread):
select random entry from dictionary
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
import random print d[d.keys()[int(random.random()*len(d.keys()))]] HTH -c
Previous message (by thread):
select random entry from dictionary
Next message (by thread):
select random entry from dictionary
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-list mailing list