|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions |
Date: | Sun, 22 Jul 2018 00:15:19 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Update of bug #54342 (project octave): Status: Fixed => Confirmed Open/Closed: Closed => Open _______________________________________________________ Follow-up Comment #11: Certainly looks like Octave versions 4.2 and below used the equivalent of rand ("state", floor (v))) But, that is only for positive values of v. For negative values, they wrapped around and the mapping is intmax ("uint32") - floor (v); This is getting complex. I'm re-opening the bug report, but there should probably be a discussion on the Octave Maintainer's list about how far we want to go in preserving continuity. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?54342> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |