From GridLAB-D Wiki
Jump to: navigation, search

randomseed - Set the random number generator seed


host% gridlabd -D randomseed=0
host% gridlabd --define randomseed=0
#set [[randomseed]=0


Both random number generators uses a pseudo-random number generator that must be seeded with an initial value that determines the sequence of number generated. Setting the randomseed to a non-zero value will control this process such that it is deterministic on any given platform.

Note that when random_number_generator global variable is set to RNG2 random number seed will exhibit different behavior on different platforms and are not guaranteed to be deterministic when using multiple threads. RNG3 does not exhibit these problems.

See also