rand_i_look max (number_or_range)
Given a max number, produces a whole number between 0
and the supplied max value exclusively. If max is a range produces an int within the range. With no args returns either 0
or 1
.
Does not consume a random value from the stream. Therefore, multiple sequential calls to rand_i_look
will all return the same value.
Introduced in v2.11
# Example 1 | |
|
|
# Example 2 | |
|
|