randomly order a list

Jacques Hausser jacques.hausser at unil.ch
Wed May 22 18:47:56 EDT 2013


Sorry, I'm afraid I put a stupid error in my script:

the second possibility should be:

> put "" into tLastOrder
> put "" into tOrder -- they must of course be the same at the start !!!!
> repeat until tOrder <> tLastOrder
>   put line(random(6)) of sOrderOfLines into tOrder
> next repeat
> put tOrder into tLastOrder
> repeat with i = 1 to 3
>   put line(item i of tOrder) of tPossibleAnswers into line i of fld"YourField"
> next repeat

Jacques



More information about the use-livecode mailing list