Obfuscated random game of lotto.<br> My first script in perl! #!/usr/bin/perl srand; $i=0; @c=(1 .. 90); @q= ("frst", "scnd", "trz", "qrt", "qnt"); while ($i<5) {$e= int (rand ($#c-$i) ); $u=$#c-$i; print "index: $e "; ($c[$e],$c[$u])=($c[$u],$c[$e]); print"the $q[$i] n° is: $c[$u]\n";$i++;}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Obfusc.Lotto
by Anonymous Monk on May 31, 2004 at 18:39 UTC | |
by mpolo (Chaplain) on Jun 01, 2004 at 05:27 UTC | |
by Anonymous Monk on Jun 01, 2004 at 07:42 UTC | |
by tucano (Scribe) on Jun 01, 2004 at 12:03 UTC |