Question: who wrote you have a friend in me
Answer: `` You 've Got a Friend in Me '' is a song written and first recorded by Randy Newman .