Random but unique

Jim Lambert jiml at netrin.com
Sat Jan 11 16:35:01 EST 2003


Duh! make that:

put origVariable into newVariable
repeat for (the number of lines of origVariable - numberOfLinesWanted) --In
other words x-y
 delete line random(the number of lines of newVariable) OF NEWVARIABLE
end repeat

newVariable should now contain y lines


You should be able to slam this into a function with newVariable being the
return value

Jim Lambert




More information about the use-livecode mailing list