When an ant is following a pheromone trail and it encounters another ant moving towards it, it randomly picks another direction to move in but this means that it moves off of the trail.

Figure 1
a: two ants are moving toward each other.
b: ants meet each other.
c: first ant moves out of the way, in a random direction.