Is Collections.shuffle suitable for a poker algorithm?

Posted by Kovu on Stack Overflow See other posts from Stack Overflow or by Kovu
Published on 2010-04-26T17:17:32Z Indexed on 2010/04/26 17:23 UTC
Read the original article Hit count: 379

Filed under:
|

Hi,

there is a poker-system in java, that uses Collections.shuffle() on all available cards before the cards are dealt.

So a collection of 52 cards 2-9, J, Q, K, A in 4 types.

After that we Collections.shuffle().

The problem is, that it seems (until now we didn't have big statistic, it's possible that we only see a lot of statistic inferences), that the algorithm is VERY unclearly.

So, is Collections.shuffle() okay for a poker algorithm?

© Stack Overflow or respective owner

Related posts about java

Related posts about poker