 According to Wil Wheaton (qv), in the scenes that he was in with  Robin Williams (I) (qv), they would film a take the way it was  supposed to be filmed. After that take, Williams would often want to  improvise scenes differently than the script, just for fun. Those  scenes were not added to the actual film, but there were enough  scenes to make an entirely different movie.