Random Seed

Navigation:  Language Reference > Functions > Source >

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 seed parameter. The random noise function and gaussian noise function are affected by this. The default value of the seed is 0. The maximum value is 65535.

default value (0)

When the 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 seed value (0) are used in one model, they will generate different sequences of random numbers during a simulation.

other values (>0)

When the 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 seed parameter (>0). E.g. when two random functions with seed value 50, are used in one model, they will generate the same sequence of random numbers during a simulation.