I signed up just to post this video
Mark Hamill himself seems to agree with the sentiment of this thread, that Lucas made it up as he went along
http://youtu.be/MH4Hvk4TdL0?t=46m25s
(skip to about 46 minutes in if that link doesn't take you straight to it)