rand
The rand function is used to return a uniformly distributed random number greater than or equal to 0 and less than 1.
Syntax
rand(INT seed)
Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| seed | No | INT | The format of parameter seed is an integer format. If a seed is specified, a stable sequence of random numbers will be generated under the same runtime environment. |
Return Values
Returns a value of type DOUBLE.
Example Code
Returns 0.3668915240363728.
select rand();
Returns 0.25738143505962285.
select rand(3);
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot