Random but unique
Jim Lambert
jiml at netrin.com
Sat Jan 11 11:06:00 EST 2003
6 Lava lamps + 6 digital cameras
results in truly random seed numbers.
http://www.lavarnd.org
Strange but true.
>- Ive got a variable with x lines where each line has got a unique ID
>- I need to get a subset out of this variable of y lines
>Removing values is not what I need, I need these
>values, or am I missing something...
Maybe you could go at it backwards.
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)
end repeat
newVariable should now contain y lines
Jim Lambert
More information about the use-livecode
mailing list