A
Albert Schlef
(I'm using Ruby 1.8.6.)
The following expression...
rand(rand 3)
...makes ruby emit a warning: "warning: parenthesize argument(s) for
future version"
It seems that I have to write is as "rand(rand(3))". Why? What potential
problem could there be in "rand(rand 3)" ?
The following expression...
rand(rand 3)
...makes ruby emit a warning: "warning: parenthesize argument(s) for
future version"
It seems that I have to write is as "rand(rand(3))". Why? What potential
problem could there be in "rand(rand 3)" ?