 On an episode of _"Tonight Show with Jay Leno, The" (1992)_ (qv),  Dustin Hoffman (qv) said that his cameo in the film was not  scripted and unplanned. He was driving by the Blockbuster shown in  the film and saw all of the cameras and equipment so he decided to  stop in and see what was happening. Because he knew director  Nancy Meyers (qv), they worked up a scene which ultimately made  the final cut.