How do I randomize the location where an AI is chasing the player?

Ah, Got it now i will test this, And i will see whether it works or not.