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 generator

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Is there a tcl random number generator?

Thanks,

 
yes, in the math functions (expr <...>)

&quot;rand()
Returns a floating point number from zero to just less than one or, in mathematical terms, the range [0,1). The seed comes from the internal clock of the machine or may be set manual with the srand function. &quot;

use: set i [expr rand()] Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top