rand max (number_or_range)
Given a max number, produces a float between 0
and the supplied max value. If max is a range, produces a float within the range. With no args or max as 0
, returns a random value between 0
and 1
.
Introduced in v2.0
# Example 1 | |
|
|