random number help...
Brad Borch
brad at activadesign.com
Tue Jul 12 15:54:26 EDT 2005
Dar Scott wrote:
>
> On Jul 12, 2005, at 12:09 PM, Paul Salyers wrote:
>
>> What I need to do is to do that 100 times and store the random number
>> is an aray
>
>
> I'm not sure what you are asking for. Maybe this gets you to walking
> distance:
>
> repeat with i = 1 to 100
> put random(6)-1 into a[i]
> end repeat
>
> Dar
>
You can sort items (string items) by random:
sort items of myVar numeric \
by random(the number of items in myVar)
Perhaps this works with an array? If not, put items in a container, sort
by random, then put in array.
Brad
More information about the use-livecode
mailing list