Drawing and casting magic always is random. It has little to do with the enemy's stats or yours. It's just random like that. Stocking drawn magic and then casting it eliminates the randomness and is much more reliable.