random
numeric random(bound)
Returns a pseudo-random value.
If bound is supplied then a random integer between 0 and bound-1 is returned,
otherwise a random decimal number between 0 and 1 is returned.
Parameters
- bound — optional exclusive upper bound of the random integer to be returned,
either a bigint or coerced number,
default is to return a decimal number.
Returns
- a pseudo-random value,
as bigint if argument is, otherwise number.