Problem with math :/

I’m trying to find a random x,y value that always is at the far end of a circle.

Like if the circle has a diameter of 300 pixels and the centerpoint is at 50,50, I want a random position on the outskirts of that circle.

Just cant seem to do it. Anyone paid attention in school?