0

I have a dictionary :

Dictionary={
    Key:value,
    #and so on few more keys and values...
}

I want to choose "values" randomly from that dictionary.

Barmar
  • 741,623
  • 53
  • 500
  • 612
jackzbazuka
  • 1
  • 1
  • 1
  • Get a list of all the keys, select a random element of the list, and access that dictionary element. – Barmar Aug 05 '17 at 17:14
  • See https://stackoverflow.com/questions/16819222/how-to-return-dictionary-keys-as-a-list-in-python for the first step, the rest should be obvious. – Barmar Aug 05 '17 at 17:15

0 Answers0