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

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

[Octave-bug-tracker] [bug #54619] randi() is biased


From: Rik
Subject: [Octave-bug-tracker] [bug #54619] randi() is biased
Date: Thu, 6 Sep 2018 16:57:47 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #5, bug #54619 (project octave):

I hear the assertion that the Octave method is incorrect, but I haven't been
able to determine that myself.  But, assuming it is incorrect, is it
inadequate?  That's why I want a numerical estimate of the bias of the current
system.  The last argument, not re-inventing the wheel, is the most
compelling.  Octave only recently began requiring C++11 so it is now possible
to contemplate using the STL for this case.  Long term, we would like to move
all of the random number generation to the standard library, but we also have
to support legacy random number generators (as Matlab does), so the code is
always going to be rather complicated so that programmers can reproduce
simulations they have written years ago.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54619>

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




reply via email to

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