Ok Sethmaster, lets imagine your enemies move in random directions, but you want the distance they travelled to be limited. (I don't want to use a function) In that case, on the top of my head, we can do something like
find path to (enemy.X + random (-100,100), enemy.Y+ random (-100,100)
This way they can only go to a maximum of 141 distance. Basically, an imaginary square over the enemies. Maybe this helps or helps you get a new idea?