AI task runaway

i currently have a crowd AI system that runs towards the player when you are the ‘monster’ and it sees you however i am wanting to make it so the AI will run away, what is the most effective way to create a random path in the opposite direction of the ‘monster’ if you need screens just ask