Shake object on iphone

I'm looking for some hints on how to make an object in unity shake in the same 3d way the phone is shaking kind of like a . Would I use transforms with the accelerometer info, or physics, or...?

I guess a good example would be dice on a table, you shake the phone and the dice roll around. I not looking for some one to hold my hand and write all the code, (although that would be cool) I'm looking for the direction to start walking.

you're probably best off using the transforms of the accelerometer(XCLM) and having it apply local force to your game object, so if the horizontal XCLM activates on a positive value (right) apply that positive value to your game object via either physics (using add Force) or just simple movement (transform.position)