• 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: Dice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dice


  • Subject: Re: Dice
  • From: Jon Pugh <email@hidden>
  • Date: Wed, 27 Oct 2004 08:11:25 -0700

At 2:10 AM -0500 10/27/04, Joseph Weaks wrote:
>How such a huge difference for the "random number" method?

The "random number" function is a scripting addition, and as such takes a speed hit via AppleEvents.  The construct "some item" is purely AppleScript and requires no AE, thus it is significantly faster, but harder to control.  For example, the "random number" function can be "seeded" so that it always returns the same sequence.  This is useful for debugging or other algorithmic shenanigans.

Jon
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Dice (From: kai <email@hidden>)
 >Re: Dice (From: Malcolm Fitzgerald <email@hidden>)
 >Re: Dice (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Re: Open Files for Illustrator
  • Next by Date: pdf page reference for QuarkXPress
  • Previous by thread: Re: text item delimiters
  • Next by thread: Re: Dice
  • Index(es):
    • Date
    • Thread