random

noaha

New Member
hi,
I need to disp random number with 15 signs.
I do : DISP RANDOM(100000000000000,999999999999999) .
but there is an error.
the random function gets 2 integer - and integer is only 8 signs .

what can I do ?

noah
 

sphipp

Member
This should work:

DISP dec(string(RANDOM(10000000,99999999)) + string(RANDOM(1000000,9999999)))
form "999999999999999"
 
Top