9 lines
242 B
Awk
9 lines
242 B
Awk
bash$ ./monty_hall.awk
|
|
|
|
Monty Hall problem simulation:
|
|
3 doors, 10000 iterations.
|
|
|
|
Algorithm keep: prize count = 3411, = 34.11%
|
|
Algorithm switch: prize count = 6655, = 66.55%
|
|
Algorithm random: prize count = 4991, = 49.91%
|
|
bash$
|