Monty Hall
ebest (590)

I'm trying to make the Monty Hall problem using python. Random does not seem to be so random. What's the problem?
https://repl.it/@ebest/Monty-hall
Ok, I think this works now. But I got 1 goat and 13 cars once?

You are viewing a single comment. View All
Answered by Scoder12 (348) [earned 5 cycles]
View Answer
bearableschemer (12)

It's often tempting to blame a language or its libraries for a bug, but unexpected behavior is almost always the result of something you overlooked. Here, the trick behind the Monty Hall problem is that Monty knows what's behind each door and chooses to reveal a goat. I don't know what you're doing, but it isn't that.