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
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
On 4/1/06, Jeff T. [email protected] wrote:
snip
Looks like Kernel
pth
Jeff T. 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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs