Created
November 13, 2012 00:31
-
-
Save jackfoxy/4063046 to your computer and use it in GitHub Desktop.
random reveal of a door for Monty Hall problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let rndReveal doorWithPrize = | |
let rnd = seedRnd.Next(1,3) | |
match doorWithPrize with | |
|1 -> (rnd + 1) | |
|2 -> if rnd = 1 then 1 | |
else 3 | |
|_ -> rnd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment