home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13583 < prev    next >
Encoding:
Internet Message Format  |  1992-09-13  |  1009 b 

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