Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: rand() function on Windows systems

by Laurent_R (Canon)
on Dec 30, 2016 at 20:28 UTC ( [id://1178679]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\Users\Laurent>perl -e "srand(555); my $range = 1000; my $number = i
    +nt(rand($range)); print $number ;"
    56
    
  2. or download this
    Laurent@Laurent-HP ~
    $ perl -e 'srand(555);
    ...
    > my $number = int(rand($range));
    > print $number,"\n";'
    466
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-04-18 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found