AI random vector movement

Hi all. I am trying to create an AI with a random direction on the way to the player, like in classic Resident Evil. So that they sometimes change their vector of movement on the way to the player or somtimes walked into the wall. Didn’t just go directly to the player. Something like that https://j.gifs.com/K8Xoqx.gif
Can help me?Thanks