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 this RandomeSeed function, the Random function will return the same sequence of random numbers for every simulation run.

 

When you need to create a repeative series of value during a debugging a problem, do not use the RandomSeed function.  Otherwise, it is usually a good practice the generate different sequences each time.

 

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 ] )

 

Parameter:

Description:

[ seedValue ]

Optional Seed-Value.

 

Example:

' 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 )

Returns:

 

 

Links:

 

See Also:

Mathematical Functions

 


Edit Time: 9/25/2017 09:09:54 AM


Topic ID#: 483

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software