Monty Hall problem: Difference between revisions
Content added Content deleted
m (Semi-automated edit: Bash -> UNIX Shell) |
m (→Icon and Unicon: header simplification) |
||
Line 921: | Line 921: | ||
! plays=1E6; switchWins=667167; stayWins=332833;</lang> |
! plays=1E6; switchWins=667167; stayWins=332833;</lang> |
||
== |
=={{header|Icon}} and {{header|Unicon}}== |
||
==={{header|Icon}}=== |
|||
<lang Icon>procedure main(arglist) |
<lang Icon>procedure main(arglist) |
||
Line 946: | Line 945: | ||
Strategy 1 'Staying' won 0.3266 |
Strategy 1 'Staying' won 0.3266 |
||
Strategy 2 'Switching' won 0.6734</pre> |
Strategy 2 'Switching' won 0.6734</pre> |
||
==={{header|Unicon}}=== |
|||
This Icon solution works in Unicon. |
|||
=={{header|J}}== |
=={{header|J}}== |