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 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.
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 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.