in reply to random negative toggle function
Thanks for the good answers. In case you were wondering, I was trying to simulate random motion, like deviation from a straight line trajectory. I needed the -1 instead of a 0 because it would plug directly into the motion equation.