Spin City
Bill Lawrence included a character named Randall Winston, the mayor of New York, in his previously co-created sitcom, "Spin City". Both characters were named after the actor who played Leonard on "Scrubs". The real-life Winston was the basis for the character Carter on "Spin City", and his friendship with Lawrence was the basis for the one shared by Turk and J.D. on "Scrubs".