View Single Post
  #2  
Old 11-15-2007, 05:43 PM
Neuge Neuge is offline
Senior Member
 
Join Date: Jul 2004
Posts: 784
Default Re: Programming a Poker Game

Your shuffling algorithm looks really inefficient and is almost certainly not truly random. You should implement a Knuth Shuffle which shuffles the whole deck before any cards are dealt and you can then just deal from the top of the deck (i.e. deck[0], deck[1]...).
Reply With Quote