Monty Hall
ebest (635)

I'm trying to make the Monty Hall problem using python. Random does not seem to be so random. What's the problem?
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 (735) [earned 5 cycles]
View Answer
bearableschemer (15)

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.