calculate_lottery_odds
Compute lottery winning odds for any prize tier. Input your numbers and bonus configuration to get probability and 1-in-N chances.
Instructions
Compute the odds of winning a lottery for various prize tiers. Use for awareness, education. Inputs: numbers to pick, total numbers, bonus number config. Returns probability and 1-in-N for each tier. See list_bundles for related 'jeux-probabilites' calculators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| numbers_to_pick | Yes | How many numbers you pick | |
| total_numbers | Yes | Total numbers in the main pool | |
| bonus_numbers | No | Number of bonus/powerball numbers to match (default 0) | |
| bonus_pool | No | Size of the bonus number pool (default 0, no bonus) |
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. |