Random but unique, more info
miscdas at boxfrog.com
miscdas at boxfrog.com
Mon Jan 13 01:14:01 EST 2003
[snip]
Dar Scott writes:
> On Sunday, January 12, 2003, at 03:52 PM, Sarah wrote:
>
>> sort lines of vChooseFrom by random(10000) -- or some suitably big
>> number return line 1 to vNumToChoose of vChooseFrom
>
> That's not fair! That's using your superior knowledge of Revolution commands!
> Dar Scott
Dar,
In MetaCard, no superior knowledge of commands required:
Help
Index
search for: sort
sort command
returns
To randomize the order of the lines of a field:
sort field "numbers" by random(1000)
miscdas
More information about the use-livecode
mailing list