I like Pete's best - closest to what I was thinking - but I'd change the "put empty" line to "delete item y of x". I think the put empty would just put "" into that item, but the item would still be there, like: 1,2,,4,5,6
~ Chris Innanen ~ Nonsanity On Wed, Jul 13, 2011 at 9:25 PM, Pete <p...@mollysrevenge.com> wrote: > 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 < > gand...@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@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode