Sheldon Leonard was an Executive Producer on The Andy Griffith Show (1960) as well as Gomer Pyle: USMC (1964).
Sheldon Leonard"s tips to Matlock at the roulette table is an homage to his days on The Jack Benny Show on radio. He would give Jack all sorts of betting tips. But they were invariably wrong.