Random but unique, more info

tkuypers at pandora.be tkuypers at pandora.be
Sat Jan 11 15:25:01 EST 2003


Ok, I believe I need to give some more info on this subject.

VChooseFrom is a list containing numbers:
   1
   2
   3
   4
   5
   6
   7
   8
   9
   10
   11
   12
   and so on...

VNumToChoose contains the number of lines to randomly select from
VChooseFrom:
   5

How do I pick randomly five lines out of vChooseFrom, putting them into
vSelected:
   10
   7
   9
   12
   1

If "1" is not in vSelected then put "1" and cr after vSelected won't work
because "1" is in "10" and in "12"


I hate these "small" problems, they take up so many time :-((

Warm regards,

Ton Kuypers




More information about the use-livecode mailing list