Hello. I want to generate a random number but it can't be within 35 of a coordinate.

I'm generating two numbers here. One for x and the other for y. I want x to be 0-720. But say the x coordinate of my character is currently 500. It cant generate the number 465-535. And the same thing in mind when generating the y coordinate.

How would I go about doing this?