The Monty Hall Brainteaser

Dean Esmay posted an interesting brainteaser which people constantly get wrong. As a followup to this, David Gillies sent him some C++ code which simulates the problem, to 'prove' what the correct answer is.

Not to be outdone, I have written a small Perl script which does the same simulation. You can either check out the code, or just run the simulation for yourself:

Number of iterations:
Verbose output: (disabled for >1000 iterations)
Strategy: Always switch
Strategy: Always stick


Notes:


David Yule<david at yule dot org>
Last modified: Mon Jan 13 13:05:46 CST 2003