Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: random number with range

by Polonius (Friar)
on Jun 01, 2006 at 17:37 UTC ( #553100=note: print w/ replies, xml ) Need Help??


in reply to random number with range

Assuming you want an integer from 50 to 200 inclusive:

int (rand 151) + 50
Polonius


Comment on Re: random number with range
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-08-01 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls