next up previous contents
Next: Commands for the Xview Up: Miscellaneous commands Previous: Running a UNIX command

Initializing the random number generator

  

randomize Initialize random number generator using current time
srand Initialize the random number generator into a specified value
<seed-value> seed value to be used

These commands initialize the random number generator. randomize provides a pseudo random initial value that differs for each invocation. srand can be used to initialize the random number generator with a known value.



Anssi Lensu
Thu May 17 15:00:44 EET DST 2001