def __iter__(self):
        state = random.choice(self.counts.keys())
        while True:
            state = self.next(state)
            yield state
Return an infinite iterator of states.
dataset/ETHPy150Open SimonSapin/snippets/markov_passwords.py/MarkovChain.__iter__