Subj : Re: cards To : comp.programming From : Roger Willcocks Date : Wed Oct 05 2005 01:04 am "Willem" wrote in message news:slrndk5tt2.rmp.willem@toad.stack.nl... > bob@coolgroups.com wrote: > ) Roger Willcocks wrote: > )> wrote in message > )> news:1128448274.935279.78050@g47g2000cwa.googlegroups.com... > )> > Let's say you want to iterate through all of the possible > combinations > )> > that occur when you choose 7 cards from a fifty two card deck. > Anyone > )> > know the best way to do this? > )> > )> Are the same cards, but in a different order, a different combination? > ) > ) I'm trying to analyze the Texas Holdem probabilities. > > So order doesn't matter, I guess ? According to http://www.learn-texas-holdem.com/how-texas-holdem-is-played.htm (now there's an apposite url, even if I say so myself), each player is dealt two cards and has to select a poker hand from those two cards and five separately dealt pool cards usable by all players. Betting occurs after the player receives two cards, and after the pool gets three, four then five cards. So it looks like order does matter. -- Roger .