Flashlight shaking motion

Is there any way that I could get my flashlight (a spotlight attached to the camera) to shake? What I mean by this is when the player starts to sprint, is there any way I could get it to shake around as though the character were running?

To make it realistic, I would apply some movement/rotation to it using a timeline. You can even multiply the magnitude of the movement/rotation by your character’s speed so the faster it runs the more the light shakes.