How to make Objects so as they do not leave an area around another object

I need to make it so that some objects do not leave a circular area of which the center is another object.

So these objects can have random movement until they reach the boundaries of the circumference around the center object.

I have been looking at insideUnitSphere but I do not think that this is the correct function for the job!

Any help will be appreciated :slight_smile:

Thanks in advance!

Hello, thanks for replying :slight_smile:
I was using transform to allow them to move but that was a set height from each of the individual objects. I then had a separate function running to check for distance from center of position based on object.

When my allowed objects chose a vector3 to move to then they ended up trying to walk out of reach of my object, got to the boundaries of .distance and then flicked back and forth between the position they wanted to go and the circumference of the object they are restricted by