Maybe something like this: import random k = list(data.keys()) random.shuffle(k) result = data[k[0]] -- https://mail.python.org/mailman/listinfo/python-list
- random choice from dictionary Abdur-Rahmaan Janhangeer
- Re: random choice from dictionary Chris Angelico
- Re: random choice from dictionary Abdur-Rahmaan Janhangeer
- RE: random choice from dictionary Avi Gross
- Re: random choice from dictionary MRAB
- RE: random choice from dictionary Avi Gross
- Re: random choice from dictionary Ben Bacarisse
- Re: random choice from dictionary sarah123ed
- Re: random choice from dictionary sarah123ed