Forum: Ruby rand

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cab5e5dbfd348fe340735b6254f11361?d=identicon&s=25 Jeff Thorne (Guest)
on 2006-04-02 04:46
(Received via mailing list)
I have been searching through the ruby doc trying to find out which
class
the method rand belongs to as I need to find out how to pass in a range
as a
parameter?

Does anyone know which class rand belongs too?



Thanks,
Jeff
2c51fec8183a5d21c4e11b430beabb47?d=identicon&s=25 Patrick Hurley (Guest)
on 2006-04-02 05:05
(Received via mailing list)
On 4/1/06, Jeff Thorne <jeff_thorne@yahoo.com> wrote:
>
>
>
>
>
>
>
>
>

ri rand
------------------------------------------------------------ Kernel#rand
     rand(max=0)    => number
------------------------------------------------------------------------
*snip*

Looks like Kernel

pth
37a3c73ffbf864e4b28f7f2384ee12ce?d=identicon&s=25 Timothy Hunter (tim-hunter)
on 2006-04-02 05:35
(Received via mailing list)
Jeff Thorne wrote:
> I have been searching through the ruby doc trying to find out which class
> the method rand belongs to as I need to find out how to pass in a range as a
> parameter?
>
> Does anyone know which class rand belongs too?
>

$ ri rand
------------------------------------------------------------ Kernel#rand
      rand(max=0)    => number
This topic is locked and can not be replied to.