Generate a random whole number float below a value
rand_i
[max (number)]
Given a max number, produces a whole numberfloat between 0 and the supplied max value. With no args returns either 0.0 or 1.0
Introduced in v2.0.0
|
print rand_i(10) |
#=> will print a number like 7.0 to the output pane |