Perl Programming/Keywords/rand

The rand keyword
rand is a function that returns a random fractional number greater than or equal to 0 and less than the value of EXPRESSION. Without EXPRESSION, the value 1 is used so that the interval of the random number is $$[0, 1)$$.

Examples
The code