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