repeat with i=

Roger Eller roger.e.eller at sealedair.com
Wed Jul 13 21:39:25 EDT 2011


This one guarantees that each of the 6 random numbers is only used once.

put "1,2,3,4,5,6" into x
replace comma with cr in x
  repeat until (the number of lines of t) = 6 -- be cautious with until
loops
     put random(6) into tLine
     if tLine is not among the lines of t then
        put (line tLine of x) & cr after t
        answer "whatever" && (line tLine of x)
     end if
  end repeat

˜Roger



More information about the use-livecode mailing list