there's method in somebody's madness

there’s ˌmethod in somebody’s ˈmadness

there is a reason for your behaviour and it is not as strange or as stupid as it seems: ‘Why do you always read your newspaper backwards?’ ‘Ah, there’s method in my madness — the back pages are where the sport is.’This comes from Shakespeare’s play Hamlet: ‘Though this be madness, yet there is method in’t (= in it).’
See also: madness, method
Idioms browser ?
Full browser ?