# Drawstep engine · Costs · `discardRandom` > Discard random — Discard the required cards at random as a cost (CR 701.9b, 118.11). 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/costs#discardRandom ## Where it goes One part of a `cost` object (an activated ability's cost, `mayPay`, `unlessPays`, an `additionalCost`): `{ "discardRandom": … }`; parts combine freely. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `discardRandom` | `boolean` | no | Discard the required cards at random as a cost (CR 701.9b, 118.11) | ## Stock examples - **Random Payment** — “” ```json {"discard":1,"discardRandom":true} ``` - **Frenetic Ogre** — “{R}, Discard a card at random: This creature gets +3/+0 until end of turn.” ```json {"mana":"{R}","discard":1,"discardRandom":true} ``` - **Stormbind** — “{2}, Discard a card at random: This enchantment deals 2 damage to any target.” ```json {"mana":"{2}","discard":1,"discardRandom":true} ``` ## Related - [Costs](https://drawstep.xyz/wiki/mtg/costs.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive