Parameters
string
required
Should be a stable and unique cache key inside the
run(). See
resumability for more information.number
default:"0"
required
Sets the lower bound (inclusive). Can’t be higher than
max.number
default:"1"
required
Sets the upper bound (exclusive). Can’t be lower than
min.boolean
default:"false"
required
Controls rounding to the nearest integer. Any
max integer will become inclusive when enabled. Rounding with floating-point bounds may cause unexpected skew and boundary inclusivity.Returns
APromise that resolves with a pseudo-random number. Always resolves to an integer when rounding is enabled.

