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

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

[Octave-bug-tracker] [bug #54342] rand() produces different results on o


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions
Date: Fri, 20 Jul 2018 19:26:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #8, bug #54342 (project octave):

Sorry, it took a long time to build, and I was then distracted...  Works
nicely.

Should there be any consideration for the other path, i.e., where state V is
an actual vector?  I recall that being a different condition in the code.  To
illustrate:


octave:13> v = rand ('state');
octave:14> v(:) = 0; rand ('state', v); rand
ans =  0.14645
octave:15> v(:) = -Inf; rand ('state', v); rand
ans =  0.14645
octave:16> v(:) = Inf; rand ('state', v); rand
ans =  0.32157


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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