What's the difference between Random.rand(x) and just rand(x) in Ruby

Viewed 51

Are they both exactly the same?

e.g.

rand(100)   #=> 12

and

Random.rand(100)   #=> 12
1 Answers
Related