octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53300] rand('state') at Octave start is not c


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #53300] rand('state') at Octave start is not correct
Date: Thu, 8 Mar 2018 09:45:31 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.146 Safari/537.36

Follow-up Comment #2, bug #53300 (project octave):

Mike said: And if a throwaway call to rand is made at the beginning, the state
is correct 

This works for me and appears to be the only reliable
way to recover a previous sequence from randn.

At least, this should be clearly documented, including the need
to save the 'init_state' vector.

It is essential that users can reproduce results that were
previously computed. This is fundamental.

After this documentation, it would be good to put together
a better solution. It is reasonable to expect the generator
to use a default starting seed in any case.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53300>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]