home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!spool.mu.edu!agate!tfs.com!tfs.com!eric
- From: eric@tfs.com (Eric Smith)
- Subject: Re: FULL HOUSE
- Message-ID: <1992Sep13.202532.15954@tfs.com>
- Organization: TFS
- References: <1992Sep13.144315.24892@wuecl.wustl.edu>
- Date: Sun, 13 Sep 1992 20:25:32 GMT
- Lines: 10
-
- In article <1992Sep13.144315.24892@wuecl.wustl.edu> ppc1@cec1.wustl.edu (Peter Pui Tak Chiu) writes:
-
- [poker program with bug]
-
- Your bug is caused by an invalid assumption about the probabilities.
- Imagine a 52-card deck, and deal 5 cards, one at a time. The
- probability that the first card will be an ace, for example, is 1/13.
- But if it is, then the probability that the 2nd card will also be an
- ace is only 1/17. But your program assumes the probability remains
- 1/13.
-