If the late Robin Williams excelled at one thing, it was improvisation.