02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter —Program Instructions<br />

RANDOM<br />

Purpose Function generating a random integer within a specified interval.<br />

Syntax RANDOM(,)<br />

is the first integer in the interval.<br />

is the last integer in the interval.<br />

Remarks ≤ ≤ , that is, the random integer will<br />

be:<br />

Equal to or greater than 1<br />

Equal to or less than 2<br />

Example The following example will produce ten random integers between 1 and<br />

100:<br />

10 FOR I%=1 TO 10<br />

20 A% = RANDOM (1,100)<br />

30 PRINT A%<br />

40 NEXT I%<br />

RUN<br />

yields for example:<br />

31<br />

45<br />

82<br />

1<br />

13<br />

16<br />

41<br />

77<br />

20<br />

70<br />

18 <strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!