4D v16.3Random |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
Random
Random
Random returns a random integer value between 0 and 32,767 (inclusive). To define a range of integers from which the random value will be chosen, use this formula: (Random%(vEnd-vStart+1))+vStart The value vStart is the first number in the range, and the value vEnd is the last. The following example assigns a random integer between 10 and 30 to the vlResult variable: vlResult:=(Random%21)+10
|
PROPERTIES
Product: 4D HISTORY
Created: < 4D v6 ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||