Re: Gaussian Distribution Using Dice
- Posted by cklester <cklester at yahoo.com> Jul 31, 2004
- 559 views
Juergen Luethje wrote: > > cklester wrote: > > > This looks good, but, again, I don't understand the last math part... > > > > <a > > href="http://mathforum.org/library/drmath/view/52207.html">http://mathforum.org/library/drmath/view/52207.html</a> > > This is not a Gaussian Distribution, BTW. A Gaussian Distribution is a > continuous distribution, whereas this is a discrete distribution. I'm glad we have geniuses on hand in the Euforum! :) > However, the probabilities of sums on multiple dice *approach* a > Gaussian distribution as the number of dice is increased. Yeah, I knew that. :P > When you want to calculate the number of ways or probabilities for only > a few cases, this code might be faster than the code provided by Lewis. > Please check yourself. I haven't run any benchmarks on them yet, but your code works great! Thank you! -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/