[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/see
From: |
Dave Goel |
Subject: |
[Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior. |
Date: |
Wed, 7 Mar 2018 21:05:41 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36 |
Follow-up Comment #15, bug #53299 (project octave):
>> foo = rand("seed") => Implements K = round(1e20*rand()), implement
rand("state", K), and output K. [or minor variants thereupon.]
Also wanted to mention: K is actually determiniscally determined from the
current state. So, not only is the state reproducible going forward, it is
also reproducible back in time.
Namely, even if the seed-user tried something really a weird "backwards"-test,
he will still get the right answer:
K = rand('seed');
rand();
L = rand('seed');
rand('seed' , K)
rand()
Y = rand('seed')
He expects Y=L, and indeed, should find that under the scheme I proposed
above.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53299>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., (continued)
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Mike Miller, 2018/03/07
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Mike Miller, 2018/03/07
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Rik, 2018/03/07
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Rik, 2018/03/07
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Mike Miller, 2018/03/07
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Mike Miller, 2018/03/07
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Rik, 2018/03/07
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Dave Goel, 2018/03/07
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Dave Goel, 2018/03/07
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Dave Goel, 2018/03/07
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior.,
Dave Goel <=
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Mike Miller, 2018/03/07
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Rik, 2018/03/08
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Michael Godfrey, 2018/03/08
- [Octave-bug-tracker] [bug #53299] Several rand/randn bugs with state/seed behavior., Rik, 2018/03/08
- [Octave-bug-tracker] [bug #53299] Document more fully rand state/seed behavior, Rik, 2018/03/10
- [Octave-bug-tracker] [bug #53299] Document more fully rand state/seed behavior, Mike Miller, 2018/03/26