Monty Hall problem: Difference between revisions
Content added Content deleted
(→{{header|REXX}}: added a second version. -- ~~~~) |
m (→version 2: added a comment regarding the door values (goat or car). -- ~~~~) |
||
Line 2,712: | Line 2,712: | ||
parse arg t .; if t=='' then t=1000000 /*Not specified? Then use default*/ |
parse arg t .; if t=='' then t=1000000 /*Not specified? Then use default*/ |
||
wins.=0 /*wins.0=stay; wins.1=switching.*/ |
wins.=0 /*wins.0=stay; wins.1=switching.*/ |
||
/*door values: 0=goat 1=car */ |
|||
do t /*perform this loop T times. */ |
do t /*perform this loop T times. */ |
||
door.=0 /*set all doors to zero. */ |
door.=0 /*set all doors to zero. */ |