Think about Loose Coupling | |
PerlMonks |
Re: Re: Re: Re: check my logic & a random number issueby rmckillen (Novice) |
on Oct 11, 2002 at 17:21 UTC ( [id://204589]=note: print w/replies, xml ) | Need Help?? |
If you look at the dice rolls that generate these losses you'll find that they're all different. Jarich: I think that explains the issue I was seeing. You can lose with a craps roll on the come out roll, and then win the next round with a winning odds bet on a 6 OR a winning odds bet on an 8, and the net win will still be the same. Basically different roll combinations are likely to yield the same net win/loss result. I'm sure I'll find some to be fairly common. Daruma: Thanks for putting up the results of Math::Random vs. int(rand). When you look at the probabilities of the various outcomes, and compare them with the actual real-life probabilities, although they both have fairly normal distributions, the Math::Random yields a better result. Thanks for all the help so far. Now I guess it comes down to a random number issue. Are there any perl modules, or different techniques I can use to get the rolls as random and close to real-life as possible, or is Math::Random likely as good as it will get? Thanks for the continued help!
In Section
Seekers of Perl Wisdom
|
|