for exper in range(1000): S = '0450' while len(configs[S]): h = S S = choix(configs[S]) configs[h][S] += 1