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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. stauntx

    Static value of a random variable

    I assumed that was true also, it doesn't seem to be the case unfortunately. =\
  2. stauntx

    Static value of a random variable

    sub fR { return int(rand(@_[1] - @_[0] + 1)) + @_[0]; } $iRandom = fR(0, 19); I'm using this code, and, every time I try to use $iRandom, it generates a new value, I need it to generate a random value once and maintain that value; how would I do this?

Part and Inventory Search

Back
Top