[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Jeff Thorne

4/2/2006 2:46:00 AM

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







3 Answers

Tim Hunter

4/2/2006 3:02:00 AM

0

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
------------------------------------------------------------------------

Patrick Hurley

4/2/2006 3:03:00 AM

0

On 4/1/06, Jeff Thorne <jeff_thorne@yahoo.com> 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?
>
>
>
> Thanks,
> Jeff
>
>
>
>
>
>
>
>
>

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

Looks like Kernel

pth


Daniel Harple

4/2/2006 3:05:00 AM

0