|
  
setrand
Format: setrand( seed )
Arguments: (real) seed Value used to initialize
the random number generators
Returns: (real) The value of seed
Description: Setrand initializes the random number
generators. Each time the system is first started, the random
number generators are seeded with the current date and time. This
ensures that the sequence of numbers generated will be unique for
each session. You can explicitly seed the generators using setrand
to guarantee that a repeatable sequence of numbers is generated.
There is no need to initialize the random number generators using
setrand if repeatability is not needed.
Examples: setrand(5) = seeds
the random number generators with 5
See Also: rand, drand, trand, nrand, lrand, brand, prand, grand, betarand, crand, correlate
|