 Rumor has it that Rex Koury had so little time to pen the theme song  that he hastily scribbled it while in the bathroom. It was  originally written for Gunsmoke when it was a radio show and later  adapted for TV.