jweinst1
12/22/2015 - 4:35 AM

randomly selects item from dictionary

randomly selects item from dictionary

#selects random item from dictionary
def select_rand_item(dict):
    import random
    return dict[random.choice(list(dict.keys()))]