17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

RANDOM<br />

Chapter 2 Program Instructions<br />

Field of Application 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 ≤ ≤ <br />

I.e. the random integer will be:<br />

Equal to or greater than <br />

Equal to or less than <br />

Example The following example will produce ten random integers between 1 and 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 e.g.:<br />

31<br />

45<br />

82<br />

1<br />

13<br />

16<br />

41<br />

77<br />

20<br />

70<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 187

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

Saved successfully!

Ooh no, something went wrong!