[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54342] rand() produces different results on o
From: |
Ian McCallion |
Subject: |
[Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions |
Date: |
Sun, 22 Jul 2018 01:56:27 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 |
Follow-up Comment #14, bug #54342 (project octave):
Rik,
Thanks. FWIW, my software generates seed states that are all positive and I
can confirm that
* using floor(seed) instead of seed
* using 0 when seed==Inf
restores compatibility between 4.4.0 and 4.2.2, for all the cases I've tried
so far.
Regarding "how far to go in preserving continuity", for me at least, there is
no need to go further since I now have code that accesses my "old" data. Other
users may be unable or unwilling to change their code and will be stuck. So I
believe the bug should be fixed. A quick unscientific check suggests that in
fact for +ve values Octave 4.4.0 uses round(seed) rather than floor(seed) so
from the outside anyway, it looks like it should be an easy and safe fix to
apply.
Thanks for your help.
Ian
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54342>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, (continued)
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Dan Sebald, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Dan Sebald, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/22
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Dan Sebald, 2018/07/22
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Dmitri A. Sergatskov, 2018/07/22
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions,
Ian McCallion <=
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/22
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Ian McCallion, 2018/07/22
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Dan Sebald, 2018/07/22
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/22
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/22
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Dan Sebald, 2018/07/22