Random Seed

Navigation:  Library > Signal > Sources >

Random Seed

Previous pageReturn to chapter overviewNext page

20-sim generates a sequence of random numbers for each simulation differently depending upon the value of the random seed parameter. The random noise function and gaussian noise function are affected by this. The default value of the random seed is 0. The maximum value is 65000.

Default value (0)

When the random seed value is 0 (default value), 20-sim generates a new sequence of random numbers for each simulation and for each new random function. E.g. when two random functions with default random seed value (0) are used in one model, they will generate different sequences of random numbers during a simulation.

Other values (>0)

When the random seed value is chosen larger than zero, 20-sim generates the same sequence of random numbers for each simulation. Moreover 20-sim will generate the same sequence of random numbers for each random function that uses the same random seed parameter (>0). E.g. when two random functions with random seed value 50, are used in one model, they will generate the same sequence of random numbers during a simulation.