What is the meaning of [There’s method in my madness]

From Shakespeare’s Hamlet, 1602. The actual line from the play is ‘Though this be madness yet there is method in it’.