Wandering AI on npc

How would I add wandering to a npc basically
Think off horror game AI

the AI walks around to the map to find the closet Humanoid

How I would make the path finding mechanism:

Define each path. When the npc is near an intersection, use randomness combined with memory (each path taken will be stored and maybe old memories will degrade in terms of impact) to decide whether it will take that intersection or not.