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: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #54619] randi() is biased
Date: Sat, 8 Sep 2018 14:28:25 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48

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

dev Octave (~4 sept):

>> a = randi(6004799503160661,10000,1,'uint64');
>> b=a(a>median(a));
>> c=hist(mod(b,2),[0 1])
c =
   1677   3323


...and Matlab r2018b prerelease:

>> a = randi(6004799503160661,10000,1,'uint64');
Error using randi
Outputs of class uint64 not supported.



    _______________________________________________________

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]