RosettaCodeData/Task/Monty-Hall-problem/AWK/monty-hall-problem-2.awk

10 lines
242 B
Awk
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
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$