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: Ian McCallion
Subject: [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions
Date: Fri, 20 Jul 2018 11:29:56 -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

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

                 Summary: rand() produces different results on octave 4.4.0
compared to earlier versions
                 Project: GNU Octave
            Submitted by: ianmcc
            Submitted on: Fri 20 Jul 2018 03:29:54 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

These two statements:

   rand('state', Inf)
   rand

produce 0.63536 on Octave 4.4.0. But they produce 0.84442 on Octave 4.2.0 and
3.8.2.

Maybe rand state is not specified for Inf, but given it works it is a shame it
is not compatible between versions.

CIan




    _______________________________________________________

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]