Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: check my logic & a random number issue

by Daruma (Curate)
on Oct 11, 2002 at 05:19 UTC ( [id://204415]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub rolldice()
    {
            my $roll = int(rand(12)) + 1;
            return $roll;
    }
    
  2. or download this
    #!c:\perl\bin\perl.exe
    
    ...
      my $n = sprintf("%02d",$i);
      print "$n = $rollhashes[0]{$i}\t\t$n = $rollhashes[1]{$i}\n";
    }
    
  3. or download this
    USING TWO DICE:
    
    ...
    10 = 856                10 = 821
    11 = 891                11 = 841
    12 = 823                12 = 848
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://204415]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 16:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found