• 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: Random Numbers fasters than the osax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Random Numbers fasters than the osax (From: email@hidden (Michael Sullivan))

  • Prev by Date: bin hex copying
  • Next by Date: Re: Error-trapping alias properties
  • Previous by thread: Re: Random Numbers fasters than the osax
  • Next by thread: Re: Random Numbers fasters than the osax
  • Index(es):
    • Date
    • Thread