dither function

Function to randomly perturb a vector