$$random
Returns a pseudo-random number that is greater than min and less than max
Usage​
"$$random([min],[max])"
note
Alternative form is available using
{
"$$random": [ /* min */, /* max */ ]
}
If min is used, the input argument is ignored and can be of any value
danger
Caution This function does not generate cryptographically secure values, and must not be used for cryptographic purposes, or purposes that require returned values to be unguessable.
Returns​
number (BigDecimal)
Arguments​
| Argument | Type | Values | Required / Default Value | Description |
|---|---|---|---|---|
| Input | ||||
min | BigDecimal | 0 | The lowest value to return | |
max | BigDecimal | 1 | The upper bound (exclusive) for the returned value |