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

Reply via email to