Use Pathfinding behavior, there are plenty of examples.
Here is the easiest method:
Every 0.5 seconds
Enemy Pathfinding is NOT moving
System For Each Enemy
... Enemy find path to (random(layoutWidth), random(layoutHeight))
Enemy On Path found
... Enemy Move along path