repeat with i=

Pete pete at mollysrevenge.com
Wed Jul 13 21:25:10 EDT 2011


Maybe (untested):

put "1,2,3,4,5,6" into x
repeat with i=1 to 6
  put item random(the number of items in x) into y
  <do whatever with y>
  put empty into item y of x
end repeat

Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Wed, Jul 13, 2011 at 6:01 PM, Timothy Miller <
gandalf at doctortimothymiller.com> wrote:

> Hi,
>
> Let's say that I want to do something like
>
> repeat with i = 1 to 6
> do "whatever" & i
> end repeat
>
> Except, I want 1 to 6 to be in random sequence
>
> I could think of a few kludgy ways to do this.
>
> Is there a standard approach? A simple approach?
>
> Thanks in advance.
>
> Tim
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>



More information about the use-livecode mailing list