RosettaCodeData/Task/Monty-Hall-problem/AWK/monty-hall-problem-2.awk
2023-07-01 13:44:08 -04:00

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$