Re: Dice
Re: Dice
- Subject: Re: Dice
- From: Malcolm Fitzgerald <email@hidden>
- Date: Wed, 27 Oct 2004 16:55:31 +1000
On Tue, 26 Oct 2004 23:03:23 -0400, David Andrews <email@hidden>
wrote:
set numsc to "123456"
...
--set roll to random number from 1 to 6 -->
--{{100218, 100223, 99687, 99897, 99802, 100173}, 73}
--set roll to some word of numss -->
--{{99582, 100278, 100027, 100086, 100208, 99819}, 95}
--set roll to some item of nums -->
--{{99731, 100335, 99784, 100104, 100027, 100019}, 22}
--set roll to some paragraph of numsp -->
--{{100025, 99924, 100171, 99564, 100307, 100009}, 40}
set roll to some character of numsc -->
--{{100016, 100070, 100107, 99883, 100047, 99877}, 43}
...
Not bad, if there were not some item! :)
kai wrote:
Hm... 'some paragraph' has the edge OMM - although my test differs from
yours somewhat.
I used 1000 items, characters, words, paragraphs, etc and repeated 1000
times to get these two sets of results from Smile's chrono on a G4 400.
random number: 0.2048569, 0.2265079000001
some item: 1.034765, 1.041271
some character: 0.033748, 0.033304999999
some word: 30.082584, 30.110024
some paragraph: 0.212169, 0.212347000001
Paragraph is a strong performer but it is slower than random number here
and they are both left in the dust by character.
--
Malcolm Fitzgerald phone: 02 9318 0877
Database Manager fax: 02 9318 0530
The Australian Society of Authors <http://www.asauthors.org>
_______________________________________________
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
- Follow-Ups:
- Re: Dice
- From: Emmanuel <email@hidden>
- Re: Dice
- From: Joseph Weaks <email@hidden>
References: | |
| >Re: Dice (From: kai <email@hidden>) |