## Hand Parameter |
Top Previous Next |

The Hand parameter allows you to quickly deal a hand of cards from one or multiple decks.
$p=hand(number of cards,number of decks)
Examples:
$p=hand() $p will be a random hand of five cards from one deck. $p=hand(7) $p will be a random hand of seven cards from one deck. $p=hand(12,2) $p will be a random hand of twelve cards from two decks (so there can be repeat cards).
## Using Hand ParametersIf you just use the parameter $p, you will have the full list of the cards in your hand inserted into your equation. Normally, you will instead use references to the individual cards.
$p[1] and $p[2] are the first two cards in the hand. |