? Roll r←?y
r is the result of the scalar application of the roll function on y, which must be a natural array:
- if
yis0,ris a random float between0and1, exclusive - otherwise,
ris a random integer from0toy-1.
Supports the origin extra argument, which offsets the result by the origin (when it's not a float).