Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

random number

Status
Not open for further replies.

SlykFX

Programmer
Oct 12, 2002
76
GB
is it possible for perl cgi to create a random number between 1 and x?

if so can u point me in the right direction for the code I can't be bothered to have a sig!
 
cool thanks :)

just so im clear on it
$number is the variable that will hold the random number
and $x will be the maximum number to choose from? I can't be bothered to have a sig!
 
Exactly. I just used [tt]$x[/tt] because you wanted a number between 1 and x.
 
thnx :) I can't be bothered to have a sig!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top