I'm trying to get the long run probabilities that Theme Parks, Cruise, Hiking, and City Visits happen but for some reason it wont print out a probability that each will happen. Only a probability for 1. All 4 are suppose to add up to 1.
Any help?
I'm trying to get the long run probabilities that Theme Parks, Cruise, Hiking, and City Visits happen but for some reason it wont print out a probability that each will happen. Only a probability for 1. All 4 are suppose to add up to 1.
Any help?
The reason is the break
statement in your code - it will abort the for
loop after one iteration. Remove that and see how it goes.