Artifact
Flash
,
, Sacrifice Spiked Pit Trap: Choose target creature, then roll a d20.
1—9 | Spiked Pit Trap deals 5 damage to that creature.
10—20 | Spiked Pit Trap deals 5 damage to that creature. Create a Treasure token.
An ability that tells you to roll a die will also specify what to do with the result of that roll. Most often, this is in the form of a “results table” in the card text.