Random variable in animation - point on Circle, Clockwise or counter-clockwise direction.
I need a very simple random variable, which is continuously updated, in a simple animation of a movement of a point on the circle periphery. This will enable some random movements around the circle periphery - clockwise or counter-clockwise.
First define T=1, let T go between [0,2π]. Then let (cos(T),sin(T)) and start animation. (Play)
Is it possible to introduce a simple random variable U, which can only take on two values -1 and 1 and which is updated every time the animation starts afresh again from T=0 ?
With (cos(U*T),sin(U*T)) this will produce a random movement clockwise or counter-clockwise.
Heine Stromdahl, Copenhagen