fork download
  1. #!/usr/bin/perl
  2. $n=0;
  3.  
  4. for($i=0;$i<10000;$i++)
  5. {
  6. $n++ if (rand(53) < rand(45));
  7. }
  8. print $n/10000,"\n";
Success #stdin #stdout 0s 6044KB
stdin
Standard input is empty
stdout
0.4268