What does class Random require?

T

tzthomas1

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
 
J

Jose Hales-Garcia

[Note: parts of this message were removed to make it a legal post.]


What does class Random require?

I think Ruby 1.9.2.

Jose
.......................................................
Jose Hales-Garcia
UCLA Department of Statistics
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,781
Messages
2,569,619
Members
45,316
Latest member
naturesElixirCBDGummies

Latest Threads

Top