[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: What does class Random require?
From: tzthomas1 <tomzam () gmail ! com>
Date: 2011-01-14 15:15:19
Message-ID: 7534774e-f01d-4524-8577-9615a69f5192 () g26g2000vbz ! googlegroups ! com
[Download RAW message or body]
Simple question,
What does class Random require?
I tried this code:
r=Random.new(315)
printf("%d\n",r.rand(10))
and go this error:
test.rb:1: uninitialized constant Random (NameError)
spent some time looking in google and google groups but no luck.
It's a pretty simple problem, maybe somebody here can help me?
TIA
-Tom Z
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic