1.000.000 random numbers?
no problem
1) create dim-array
DIM array(1000000)
2) set values:
for i=1 to 1000000
array(i)=i
next
3) swap values
for i=1 to 1000000
nr=rand(1,1000000) ;can rand handle large numbers?
tmp=array(i)
array(i)=array(nr)
array(nr)=tmp
next
that's it - you need only 1 array
no problem
1) create dim-array
DIM array(1000000)
2) set values:
for i=1 to 1000000
array(i)=i
next
3) swap values
for i=1 to 1000000
nr=rand(1,1000000) ;can rand handle large numbers?
tmp=array(i)
array(i)=array(nr)
array(nr)=tmp
next
that's it - you need only 1 array