python random value from dictionary code example
Example 1: python dict get random key
random.choice(list(my_dict))
Example 2: how to choose a random key from a dictionary in python
{'a': 1, 'b': 2, 'c': 3}
random.choice(list(my_dict))
{'a': 1, 'b': 2, 'c': 3}