calculate_card_draw_probability
Compute the probability of drawing a specific number of target cards from a deck. Enter deck size, number of target cards in deck, cards drawn, and desired target cards to get the odds (1 in X).
Instructions
Calculate hypergeometric probability of drawing specific cards from a deck. Returns: {odds_one_in}. See list_bundles for related 'jeux-probabilites' calculators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck_size | No | Total number of cards in the deck (default 52) | |
| cards_in_deck_matching | Yes | Number of target cards in the deck | |
| draw_count | Yes | Number of cards drawn | |
| target_cards | Yes | Number of target cards wanted in the draw |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools). | |
| formula | No | Human-readable formula or method used (e.g. "I=P·r·t", "Magnus formula"). | |
| source | No | Authoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21"). | |
| reference_url | No | Link to a calcul2 page documenting the calculation in detail. |