Markov Chains, Computer Science, Programming, Probability, Problem Solving.
= [p/sum(current_possibilities) for p in current_possibilities] self.state_possibilities = probabilities def show_possibilities(self): return self.state_possibilities def create_chain(self, n): chainList = [] state_next = random.choice(self.states) chainList.append(state_next) for _ in range(n):