Short script by Michael Zeevi that simulates the result of the Bertrand's box paradox:
There are three boxes:
- a box containing two gold coins,
- a box containing two silver coins,
- a box containing one gold coin and a silver coin.
The 'paradox' is in the probability, after choosing a box at random and withdrawing one coin at random, if that happens to be a gold coin, of the next coin also being a gold coin.
Description from wikipedia. 17/1/2017