integer i,j,k,queue[200],number
boolean repeat
k=fileopen('c:\tmp.txt',linemode!,write!,shared!,replace!)
mle_1.text=''
i=1
do while i<=200
number=rand(2000)
for j=1 to i
if queue[j]=number then
repeat=true
exit
else
repeat=false
end if
next
if repeat=true then //get the number again
else
queue[i]=number
mle_1.text+=string(number)+',~r~n'
filewrite(k,string(number))
i=i +1
end if
loop
fileclose(k)