The electronics of the project are quite easy to follow. I used an arduino uno, 3 servos (two for the arms and one for the head), a buzzer and a SHARP sensor.

In the code when the distance sensor detects an object nearby the random() function gives a random number and depending on that number the robot will perform different  movements. 

With the CuteBuzzerSounds library the buzzer makes fun robot voices that improve the experience by a lot .