Who am I?
I am a 30-something Information Scientist living in Durham and working at the University of North Carolina at Chapel Hill.
Other Blogs Job Resources Tech Resources Tech Blogs

Monty Hall Problem Demonstration

The following snippets represent instances of a mock round of a game like "Let's make a deal." You can reload this page again and again to re-run the script with new random outcomes. Note at the bottom of the page each time that the numbers tend to hover around a 6/4 or 7/3 split in favor of winning if you switch.

Skeptical programmer? Click here to examine the PHP code.


Winner: 1
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 3
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 1
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 2
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 1
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 3
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 2
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 2
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 1
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 2
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 1
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 2
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 3
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 1
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 1
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 3
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 2
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 3
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 2
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 3
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 2
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 2
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 1
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 1
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 1
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 2
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 3
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 1
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 1
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 3
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 2
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 1
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 2
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 1
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 2
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 2
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 1
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 2
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 3
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 3
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 2
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 1
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 3
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 1
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 3
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 3
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 1
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 2
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 3
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 2
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 2
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 2
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 3
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 3
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 3
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 3
First Choice: 3
Reveal Goat: 2
Second Choice: 1

Winner: 1
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 1
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 1
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 2
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 2
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 3
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 1
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 2
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 2
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 3
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 2
First Choice: 3
Reveal Goat: 1
Second Choice: 2

Winner: 1
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 1
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 2
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 3
First Choice: 1
Reveal Goat: 2
Second Choice: 3

Winner: 1
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Winner: 2
First Choice: 2
Reveal Goat: 3
Second Choice: 1

Winner: 3
First Choice: 2
Reveal Goat: 1
Second Choice: 3

Winner: 2
First Choice: 1
Reveal Goat: 3
Second Choice: 2

Win: 58
Lose: 42