Re: Random Numbers fasters than the osax
Re: Random Numbers fasters than the osax
- Subject: Re: Random Numbers fasters than the osax
- From: Emmanuel <email@hidden>
- Date: Thu, 28 Mar 2002 11:31:55 +0100
At 8:07 PM +0100 27/3/02, Michael Sullivan wrote:
>
That's not a huge deal, but I'm wondering if one of you math wiz folks
>
has a vanilla random number generator handy, or a suggestion on how to
>
build one.
My suggestion about how to build a Quick & Dirty one would be:
------------------------
set theNextRandomNumber to (thePreviousOne + BigBigPrime) mod (BigPrime)
------------------------
where BigPrime is any big prime number, and BigBigPrime a still bigger one.
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.