Easiest Way to shake a object?

Hello Unity3D i have a question about objects?what is the easiest way to shake an object in unity3D use javascript?For example i have a gameobject that is a parent to the camera and i want the gameobject to shake when i press a button?If anyone knows how i can do this?Can you please tell me how?

You could probably use the Update function an use transform.translate to move the object up and down.

var Up : bool;

function Update(){
        Up = false;
        Up = true;