Rand

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

···

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

------------------------------------------------------------------------
*snip*

Looks like Kernel

pth

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

···

------------------------------------------------------------------------