How long did it take the singer - songwriter Randy Newman to compose the hit song " You 've Got a Friend in Me " ?
Originally written as the theme song for the 1995 Disney / Pixar animated film " Toy Story " , it has since become the theme song for its sequels , " Toy Story 2 " ( 1999 ) and " Toy Story 3 " ( 2010 ) .