Rand
- Last UpdatedOct 29, 2026
- 1 minute read
Generates a random number between 0 and 1.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
Rand |
Statistical |
Synchronous |
Yes |
Supported |
Supported |
Supported |
Supported |
Supported |
Syntax
Rand ( )
This function has no parameters.
Returned value
Returns a real number between 0 and 1.
Examples
|
Tag Name |
Expression |
|---|---|
|
Tag |
Rand() // Returned value = ?, Where: 0<?<1 |