on Mar 17th, 2014, 8:48pm, Wendell  wrote:| | IS it possible to DIM "num" so that you get EXP. num(1)=6  num(2)=5  num(3)=8  etc.
 Ten deminsion with different values
 | 
 | 
Use the Knuth (or Fisher-Yates) shuffle:
 Code:      DIM num(10)
      FOR I% = 1 TO 10
        num(I%) = I%
      NEXT I%
      FOR I% = 10 TO 2 STEP -1
        SWAP num(I%),num(RND(I%))
      NEXT I%
      FOR I% = 1 TO 10
        PRINT "num("; I%; ") = "; num(I%)
      NEXT I% 
Richard.