I define a tuple called states in my test environment. I then wish to step through this tuple in a random manner as I test my system:
st = time.time()
for s in sorted(states,key=lambda k: random.random()):
    my_system.set_state(s)
    test.confirm_state(s) 
Each state should only be visited once. Is this the most pythonic way of shuffling my tuple?
 
    