Oracle Text

3, Discard a card at random: Pyromancy deals damage to any target equal to the converted mana cost of the discarded card.

Card Rulings

10/4/2004 A card with X in the cost is treated as X=0.
10/4/2004 You pick the target before you know which card is going to be discarded.