xpfGetRandomInteger
FUNCTION xpfGetRandomInteger () aRandomInteger : INTEGER;
The function xpfGetRandomInteger returns a random INTEGER data type.
Arguments
Return Value
Â
Type | Name | Comment |
INTEGER | aRandomInteger | A random INTEGER number |
Options
Â
Example
FUNCTION getRandomInteger : SET OF INTEGER; LOCAL randInt : INTEGER; randIntSet : SET OF INTEGER; END_LOCAL; ON_ERROR_DO; xpxPrintf('\nError.'); xpxThrow; END_ON_ERROR_DO; REPEAT i := 1 TO 10; randInt := xpfGetRandomInteger(); randIntSet ++ randInt; xpxPrintf('\nrrandIntSet[%d] : %lu',i,randInt); END_REPEAT; RETURN(randIntSet); END_FUNCTION;
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â