• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: processing time & stack overflow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: processing time & stack overflow


  • Subject: Re: processing time & stack overflow
  • From: Paul Skinner <email@hidden>
  • Date: Tue, 28 Aug 2001 11:49:23 -0400

on 8/28/01 11:05 AM, Arthur J Knapp wrote:

> on NewOrder(lst)
> set {s1, s2, len} to ,
> {random number from 1 to 100000, 31415, lst's length}
> repeat with i from 1 to len
> set {j, s1} to {(s1 mod len) + 1, (s1 * s2) mod len}
> set {lst's item i, lst's item j} to ,
> {lst's item j, lst's item i}
> end repeat
> end NewOrder
>
> set lst to {"a", "b", "c", "d"}
>
> NewOrder(lst)
>

Nice. I'm still digesting it. You do want to return the value of 'lst'
at the end though.
I don't see any OSAX calls. Was that in the previous version you mention?
--
"Ah! How sweet coffee tastes! Lovelier than a thousand kisses, sweeter far
than muscatel wine! I must have coffee..." -- J. S. Bach


  • Follow-Ups:
    • Re: processing time & stack overflow
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: processing time & stack overflow (From: Arthur J Knapp <email@hidden>)

  • Prev by Date: Re: Scripting Newbie
  • Next by Date: Re: COLOR MIXING
  • Previous by thread: Re: processing time & stack overflow
  • Next by thread: Re: processing time & stack overflow
  • Index(es):
    • Date
    • Thread