DOC HOME
SITE MAP
MAN PAGES
GNU INFO
SEARCH
PRINT BOOK
random(TCL)
random -- return pseudo-random positive integer
Synopsis
random
limit
|
seed
[
seedval
]
Description
Generates a pseudo-random integer number greater than or equal to zero and less than
limit
. If
seed
is specified, then the command resets the random number generator to a starting point derived from the
seedval
. This allows you to reproduce pseudo-random number sequences for testing purposes. If
seedval
is omitted, then the seed is set to a value based on current system state and the current time, providing a reasonably interesting and ever-changing seed.
02 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005