Electro's last ability triggers without requiring a target. You choose the value of X as that ability resolves. If you pay the mana, a second "reflexive" ability triggers. You choose the target for that ability at that time. Players can respond to the reflexive triggered ability as normal, knowing the amount of damage that will be dealt as that ability resolves.