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(){
    if(Up){
        transform.translate(0,0.1f,0);
        Up = false;
           }else{
         transform.translate(0,-0.1f,0);
        Up = true;
           }
}