• 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: email@hidden
  • Date: Mon, 1 Nov 2004 15:39:22 -0500

At 5:05 PM -0700 10/29/04, John W. Baxter wrote:
On 10/29/2004 8:18, "email@hidden" <email@hidden> wrote:

For everything you ever wanted to know about random numbers and more,
 > start surfing around from www.random.org until you get bored or your
 > brain explodes.

Or just be content that the random OSAX or the some item of... method are
"random enough" for non-money dice games, and constant vigilance (or serious
trust of your opponent) is required for "random enough" with real dice in a
big money dice game.

That's certainly a reasonable thing to do if those are fast enough. In terms of quality of randomness, I don't expect that my generator is any better than apple's (though it is 42 bit and I'm pretty sure the standard one is 30bit). The time-hit of an osax call is what motivated me to write my own generator. I tested (to the extent that time allowed) the apple random number generators in the same way I tested mine and got similar results (I was trying to make sure that people using my mod did not take a quality hit).


For most purposes, one doesn't need really high quality random numbers.

Agreed, but I've seen some alarmingly low quality generators in common use. When something as simple, well known and fast as the VonNeumann algorithm I used gives acceptable results for most purposes, it's kind of ridiculous that anyone would do something as poor as some of the random functions that were common in 80s era basics.



Michael

--
Michael Sullivan                             613 West Johnson Avenue
                                             Cheshire, CT 06410
Business Card Express                        800-962-4030
Thermographers to the Trade                  email@hidden
_______________________________________________
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


  • Prev by Date: Re: Count of paragraphs in a TextEdit document
  • Next by Date: Bridge anyone? [not off topic]
  • Previous by thread: Re: text item delimiters
  • Next by thread: Bridge anyone? [not off topic]
  • Index(es):
    • Date
    • Thread