First you need to attach pathfind behavior to the character.
On start of layout find path to random(x,y).
On path found - > move along path.
On failed to find path - > find path to random(x,y).
I did not test this because I'm not on my pc but I think it's gona work.