隨機數發生器
RANDOM - 生成一個隨機數
隨機(低,高)
生成低和高之間的偽隨機整數
// Example that generates 20 random numbers between 1 and 20 (1 and 20 included)
DEFINE VARIABLE i AS INTEGER NO-UNDO.
DO i = 1 TO 20.
DISPLAY i RANDOM(1, 20).
PAUSE.
END.
RANDOM - 生成一個隨機數
隨機(低,高)
生成低和高之間的偽隨機整數
// Example that generates 20 random numbers between 1 and 20 (1 and 20 included)
DEFINE VARIABLE i AS INTEGER NO-UNDO.
DO i = 1 TO 20.
DISPLAY i RANDOM(1, 20).
PAUSE.
END.