What is the meaning of [Method to my madness]

An assertion that, despite one’s approach seeming random, there actually is structure to it.