version 3
Random Number
| Parameter | Type | Description | ||||
| This command does not require any parameters | ||||||
| Function result | Number | Random number | ||||
Description
Random returns a random integer value between 0 and 32,767 (inclusive).
To define a range of integers, use this formula:
(Random%(EndStart+1))+Start
The value start is the first number in the range, and the value end is the last.
Example
The following example assigns a random integer between 10 and 30 to the vlResult variable:
vlResult:=(Random%21)+10