Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7214
Chapter 2 Program Instructions
RANDOM
Field of Application
Function generating a random integer within a specifi ed interval.
Syntax RANDOM(<nexp
1
>,<nexp
2
>)
<nexp
1
> is the fi rst integer in the interval.
<nexp
2
> is the last integer in the interval.
Remarks
<nexp
1
> ≤ <random integer> ≤ <nexp
2
>, that is the random integer will be:
Equal to or greater than <nexp
1
>
Equal to or less than <nexp
2
>
Example
The following example will produce ten random integers between 1
and 100:
10 FOR I%=1 TO 10
20 A% = RANDOM (1,100)
30 PRINT A%
40 NEXT I%
RUN
yields for example:
31
45
82
1
13
16
41
77
20
70