Premise: It was unpredictable magic, but apparently bore some vague relationship to what he was wishing for.

Hypothesis: The magic was very precise and worked exactly the way he expected.
Relation: contradiction