|
RandomSeed Function |
Top Previous Next |
|
Seeds the random number generator with the optional seed value, or the time if seed value is excluded, so that the sequence of random numbers is different every time a test is run. If you don't use this function the Random function will return the same sequence of random numbers for every simulation run. This is good for debugging a problem, but not usually a desired outcome.
Note: Best to use in the Before Simulation script, so it is run just once at the start of the test.
Syntax
value = RandomSeed( [ seedValue ] )
iParameters
Examples
' Seeds the random number generator with the time. Returns the value used.
seedValue = RandomSeed
' Seeds the random number generator with the current parameter test
RandomSeed( test.currentParameterTest )
|