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.


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

Anssi Lensu
Tue Jul 23 11:58:18 EET DST 2002