Creating Jitter Option

I want to create something that can pan/rotate back and forth at a pixel or square pixel equation.
“Jitter or shake”