Hi, is there a way to store and save the random seed state vector used to initialise the random generator of GPC (the Mersenne Twister)? This is very important when one has to restart simulations using the same seed. Thanks, regards Silvio a Beccara
Silvio a Beccara wrote:
is there a way to store and save the random seed state vector used to initialise the random generator of GPC (the Mersenne Twister)? This is very important when one has to restart simulations using the same seed.
No, there isn't, but see my reply (March 19) to your previous question on how to do several runs with the same seed. http://fjf.gnu.de/crystal/gpc/en/mail6532.html Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html
Frank Heckenbach wrote:
Silvio a Beccara wrote:
is there a way to store and save the random seed state vector used to initialise the random generator of GPC (the Mersenne Twister)? This is very important when one has to restart simulations using the same seed.
No, there isn't, but see my reply (March 19) to your previous question on how to do several runs with the same seed.
Oh? I re-initialize the MT code for testing purposes in the download/nmalloc.zip code available on my site below. That happens to depend on knowing the default initialization value, but all that is required is a 32 bit value. -- Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> USE worldnet address!
CBFalconer wrote:
Frank Heckenbach wrote:
Silvio a Beccara wrote:
is there a way to store and save the random seed state vector used to initialise the random generator of GPC (the Mersenne Twister)? This is very important when one has to restart simulations using the same seed.
No, there isn't, but see my reply (March 19) to your previous question on how to do several runs with the same seed.
Oh? I re-initialize the MT code for testing purposes in the download/nmalloc.zip code available on my site below. That happens to depend on knowing the default initialization value, but all that is required is a 32 bit value.
Yes, that's what I mean. OTOH, what Silvio meant was getting at the internal state of the PRNG (624 words) which is not possible (yet). Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html
Frank Heckenbach wrote:
CBFalconer wrote:
Frank Heckenbach wrote:
Silvio a Beccara wrote:
is there a way to store and save the random seed state vector used to initialise the random generator of GPC (the Mersenne Twister)? This is very important when one has to restart simulations using the same seed.
No, there isn't, but see my reply (March 19) to your previous question on how to do several runs with the same seed.
Oh? I re-initialize the MT code for testing purposes in the download/nmalloc.zip code available on my site below. That happens to depend on knowing the default initialization value, but all that is required is a 32 bit value.
Yes, that's what I mean. OTOH, what Silvio meant was getting at the internal state of the PRNG (624 words) which is not possible (yet).
That internal state is completely initialized by the single 32 bit value. So any sequence starting from such an initial state is easily repeated. Since the sequence itself is much longer than 32 bits can count, other states are not convenient. -- Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> USE worldnet address!
participants (3)
-
CBFalconer -
Frank Heckenbach -
Silvio a Beccara