Documentation for routine rand, assembled from the following types:
Returns a pseudo-random Num in the range
Coerces the invocant to Num and returns a pseudo-random value between zero and the number.
say 1e5.rand; # OUTPUT: «33128.495184283␤»
sub term:<rand> (--> Num)method rand(Real: --> Real)
Returns a pseudo-random number between zero (inclusive) and the number (non-inclusive.)
The term form returns a pseudo-random
Num between 0e0 (inclusive) and 1e0 (non-inclusive.)
method rand(Num: --> Num)
Returns a pseudo random number between 0 and the invocant.