Talk:Monty Hall problem: Difference between revisions

m
→‎Is the Perl implementation correct?: <lang> -> <lang lang> fix in talk page!
m (→‎Is the Perl implementation correct?: <lang> -> <lang lang> fix in talk page!)
Line 47:
:::It was not the case of Perl code, that indeed simulated like the others code, but with logical optimization. Would the following (commented) code meets the needed criteria?
 
<lang perl>#! /usr/bin/perl
use strict;
my $trials = 10000;
Line 89:
print "Stay win ratio " . (100.0 * $stay/10000.0) . "\n";
print "Switch win ratio " . (100.0 * $switch/10000.0) . "\n";
exit 0;</perllang>
 
:::--[[User:ShinTakezou|ShinTakezou]] 23:01, 7 December 2008 (UTC)