How to make a pet go to a random position in a radius?

Hello everyone,
I was wondering how you would approach making a pet system where the pets go behind the player and within a certain radius it picks a random positions and the pet goes to that random pos?