home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!purdue!mentor.cc.purdue.edu!noose.ecn.purdue.edu!en.ecn.purdue.edu!krauskop
- From: krauskop@en.ecn.purdue.edu (Curtis D Krauskopf)
- Newsgroups: comp.lang.c++
- Subject: Re: FULL HOUSE
- Message-ID: <1992Sep13.202950.17804@en.ecn.purdue.edu>
- Date: 13 Sep 92 20:29:50 GMT
- References: <1992Sep13.144315.24892@wuecl.wustl.edu>
- Organization: Purdue University Engineering Computer Network
- Lines: 12
-
- The method you have chosen measures the accuracy of your random number
- generator. To get a real answer for the probability of a full house,
- you will need to modify the program so that it evaluates all 52C5
- possible hands.
-
- Obviously, you won't want to do that (unless you have a Cray handy for
- a couple hours!). So the next best thing is to notice that any hand
- with three different cards can not be a full house and design the
- algorithm to skip situations where you have ABCCC, CABCC, CCABC and
- CCCAB. You can even refine it further with a little creativity.
-
- Curtis
-