Maybe something like this?

    import random
    k = list(data.keys())
    random.shuffle(k)
    selected = f[k[0]]
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to