[#11439] comments needed for Random class — "NAKAMURA, Hiroshi" <nakahiro@...>

-----BEGIN PGP SIGNED MESSAGE-----

15 messages 2007/06/12

[#11450] Re: new method dispatch rule (matz' proposal) — David Flanagan <david@...>

This is a late response to the very long thread that started back in

17 messages 2007/06/13

[#11482] Ruby Changes Its Mind About Non-Word Characters — James Edward Gray II <james@...>

Does this look like a bug to anyone else?

10 messages 2007/06/16

[#11505] Question about the patchlevel release cycle — Sylvain Joyeux <sylvain.joyeux@...4x.org>

1.8.6 thread support was broken in bad ways. It stayed for three months

20 messages 2007/06/20
[#11512] Re: Question about the patchlevel release cycle — Urabe Shyouhei <shyouhei@...> 2007/06/20

Hi, I'm the 1.8.6 branch manager.

[#11543] Re: Apple reportedly to ship with ruby 1.8.6-p36 unless informed what to patch — James Edward Gray II <james@...>

On Jun 27, 2007, at 4:47 PM, Bill Kelly wrote:

10 messages 2007/06/27

Re: comments needed for Random class

From: Steven Lumos <steven@...>
Date: 2007-06-18 23:04:52 UTC
List: ruby-core #11502
"NAKAMURA, Hiroshi" <nakahiro@sarion.co.jp> writes:
> Hi,
>
> Thanks all for your comments.
>
> 1. Random#rand(range): it is proposed in ruby-dev, too.  I dropped it
> from my previous proposal because begin/last of a Range can be a float
> number.  I couldn't imagine what Random#range(Range.new(1.1, 3.1))
> should return.
>
> 2. Random#seed: should be added.
>
> 3. Random#random_seed: same as Random#srand(0), right?

I intended something that just returns the result of random_seed()
from random.c.  So I should have said Random.random_seed instead of
#random_seed and then Random#srand(Random.random_seed) and
Random#srand(0) are roughly the same.

Steve


In This Thread

Prev Next