method in one's madness
An underlying purpose in crazy behavior, as in Harry takes seemingly random trips around the country but there's method to his madnesshe's checking on real estate values. This expression comes from Shakespeare's Hamlet (2:2): "Though this be madness, yet there is method in it." For a modern equivalent, see crazy like a fox.
Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.