[MacRuby-devel] [MacRuby] #433: Results of rand() is not obviously uniformly distributed
MacRuby
ruby-noreply at macosforge.org
Mon Nov 16 06:20:22 PST 2009
#433: Results of rand() is not obviously uniformly distributed
-----------------------------------+----------------------------------------
Reporter: nagachika00@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
-----------------------------------+----------------------------------------
Hi
Kernel#rand(nil) should generate random Float numbers distributed
uniformly between 0.0 <= x < 1.0.
But current MacRuby rand() generate obviously non-uniform distributed
sequence. It NEVER generate a number smaller than 0.1!
I have wrote a small patch. I check that work fine with AO Bench result
image.
Thanks.
--
Ticket URL: <http://www.macruby.org/trac/ticket/433>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list