Simulator for the Monty Hall Problem
- Number of times to run the simulation (integer, default is
1
) - Strategy:
switch
orstay
To run 10 simulations with the strategy 'switch':
$ ruby simulator.rb 10 switch
Simulator for the Monty Hall Problem
1
)switch
or stay
To run 10 simulations with the strategy 'switch':
$ ruby simulator.rb 10 switch