Man, better copy + paste my script into your map. It's pointless to calculate interval this way. Better make use of IsUnitMoving and use constant timer.
Just make sure trigger is named: 'Tornado_Wander' since I've named init function 'InitTrig_Tornado_Wander' to match yours previous trigger.