Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: random number with range

by GrandFather (Sage)
on Jun 01, 2006 at 17:34 UTC ( #553097=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $number = $start + int rand $end - $start + 1;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://553097]
help
Chatterbox?
[choroba]: command line FTW!
[marto]: good morning all, sane dots all round
[Corion]: Hi marto! I hope all is well!

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2016-12-07 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (125 votes). Check out past polls.