Re: Dice
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>) |