The Random()
generates a random number.
This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.
Returns a random integral number between 0 or a minimum value, and a maximum value.
Returns Invalid expression
if one of the parameter values is not a valid number, or is a negative number, or when a maximum value is 0, or when a maximum value is less than a minimum value.
Name | Type | Required | Description |
---|---|---|---|
max_num
numeric
the maximum value of the generated number.
min_num
numeric
the minimum value of the generated number.