A Poker Hand - MATLAB Cody - MATLAB Central

Problem 2030. A Poker Hand

Difficulty:Rate

Texas Hold ‘Em is a classical card game. In this problem, we are concerned with determining the probability of attaining a certain type of hand.

A “Full House” is a five card hand comprised composed of two sets: a set of three of a kind, and a set of two of a kind. Examples include: K-K-K-Q-Q, 10-10-10-5-5, and A-A-A-4-4.

Assuming that there are 52 cards in a unique, distinguishable deck, find the probability of attaining a “Full House” in any given hand. You may assume that there are 9 players playing on a full table.

Solution Stats

62.75% Correct | 37.25% Incorrect
Last Solution submitted on Jun 08, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers30

Suggested Problems

More from this Author1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!