Monty Hall problem: Difference between revisions

m
Line 681:
#include <time.h>
#include <math.h>
#define NumSim 1000000000 // one billion of simulations! using the Law of large numbers concept [[https://en.wikipedia.org/wiki/Law_of_large_numbers large numbers]]
#define NumSim 10000000
 
void main() {
Line 709:
Output of one run:
 
<pre> After 100000001000000000 games, I won 3330728333329011 by staying. That is 33.307277332902%. Andand I won by switching 6669272666670989 That is 66.692723667098% </pre>
 
=={{header|C sharp|C#}}==
7

edits