rand

rand

rand

Function

Generate pseudo-random numbers.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
minNumberNoNoneMinimum value; used as the end value when only one parameter is passed.
maxNumberNoNoneMaximum value.

Return value

TypeDescription
Float/IntReturns a Float from 0 to 1 without parameters; returns Int for integer range parameters; returns Float when any parameter is a Float.

Example

Notes

  • The random source is based on the current high-precision time mix, not cryptographic random numbers.