# Drawstep engine · Values · `chosenNumber` > Chosen number — Numeric choice in this resolution, falling back to the source choice (CR 608.2d). Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/values#chosenNumber ## Where it goes A number: `{ "kind": "chosenNumber", … }` wherever a ValueDef is accepted (`amount`, `power`, `max`, `count` …); a plain integer is also a ValueDef. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `key` | `string` | no | Named numeric choice; defaults to number (CR 608.2d) | | `of` | `"you" \| "highest" \| "lowest"` | no | A number every player chose (choose with collect): `you` = the one the player "you" stands for chose (each candidate of a player selector's most / fewest / where); `highest` / `lowest` = the greatest / least of them all | ## Minimal form ```json {"kind":"chosenNumber"} ``` The engine reads that minimal form as: “the chosen number”. ## Stock examples - **Iter38 Positive** — “Choose a number greater than 0. You gain life equal to the chosen number.” ```json {"kind":"chosenNumber"} ``` - **Number Invocation** — “Choose a number between 0 and 100. You gain life equal to the chosen number.” ```json {"kind":"chosenNumber","key":"number"} ``` - **Choice Values** — “Choose a number between 0 and 10. Destroy all creatures with power greater than or equal to the chosen number.” ```json {"kind":"chosenNumber","key":"number"} ``` ## Related - [Values](https://drawstep.xyz/wiki/mtg/values.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive