In 'Good Will Hunting,' Robin Williams improvised the final line as well as the scene where he discusses his wife farting in bed, resulting in Matt Damon's genuine laughter.