NUMERIC DIGITS 10 vIM=139968 vIA=3877 vIC=29573 LAST=42 parse arg n If n < 1 Then Do n = 1 End Do i = 1 TO N result = gen_random(100) End SAY result EXIT gen_random: PROCEDURE EXPOSE LAST vIM vIA vIC PARSE ARG n LAST = (LAST * vIA + vIC) // vIM return n * LAST / vIM