Monty Hall problem in Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
monty-hall.rb

README.md

The Monty Hall problem in Ruby

GuardRails badge

The Monty Hall Problem is an illustration of how probability can be completely and utterly counterintuitive. I've had a thousand arguments about this, so I decided to write a bit of Ruby to model the process, and display the results of a large number of attempts.

The moral of the story: don't trust gameshow hosts, or you're going home with a goat.