Returns a measure value between 0 and 1, non-inclusive. Since this function uses the current system time when run inside the printer, it returns a true random value. On the computer, however, the function uses the current data page as its seed to ensure the returned value is constant when you navigate from page to page on your document.
random() measure value
None
This example displays 10 random numbers between 1 and 20.
define(&x,integer,1)
for(&x,1,1,10)
show(inttostr(floattoint(random()*20)+1))
crlf()
endfor()