noun
plural -ods
[count] :a way of doing something
[noncount] formal :a careful or organized plan that controls the way something is done
(a) method in/to your madness
If there is method in your madness or (US) (a) method to your madness, there are good reasons for your actions even though they may seem foolish or strange.