Seeds the random number generator with the optional seed value. A time value is used when the Seed-Value is excluded so that the sequence of random numbers is different every time a test is run.
If you don't use thr RandomeSeed function, the Random function will return the same sequence of random numbers for every simulation run.
When you need to create a repetitive series of values while debugging a problem, do not use the RandomSeed function. Otherwise, it is usually a good practice to generate a random different sequence of numbers each time.
Best to use in the Before Simulation script, so it is run just once at the start of the test.
Syntax: |
---|
value = RandomSeed( [ seedValue ] ) |
Parameter: |
Description: |
---|---|
[ seedValue ] |
Optional Seed-Value. |
Example: |
---|
' Seeds the random number generator with the time. Returns the value used. |
Returns: |
|
Links: |
---|
|
See Also: |
Edit Time: 9/18/2020 12:26:39 PM |
Topic ID#: 483 |