Quote
Answer:
Some of you yourselves may not believe the predicted result.
Here's the interesting bit from the article:
Quote
So, let's write our own simulations and prove or disprove this! Your program can be as simple or complex as you feel necessary, as long as it proves your theory. It must incorporate these key points:
- There are three prizes, one good and two bad.
- After one prize is chosen by the player (at random, without knowing what they have), one bad prize is removed from the left-over choices.
- This is where the simulations must diverge. You must show what happens when the contestant keeps the prize they've already chosen, and what happens when they switch.
- Repetition is key. Small sample runs prove nothing. Write your program so that it proves your hypothesis, or at least strongly suggests it with data.
This is posted in the C# section, but I welcome any language submission.
Please post your answer code in spoilers. I'll post mine once we get a few entries.
Edit for clarity: our goal here is to actually write a program to perform the simulation. I know that this is a simple problem to prove with math, but the fun is in writing the code to prove that. I've updated the title to make this more clear.

New Topic/Question
Reply


MultiQuote











|