(a) method in/to one's madness

good reasons for one's actions even though they may seem foolish or strange