Consider:
Does "random" mean
1. uniform distribution on x and y coordinates with some sort of capping at the circle boundary? Or perhaps uniform across all possible x,y pairs inside (on the edge also?) of the circle? what about a normal distribution?
2. a choice of an angle and a length?
3. A point using 1 or 2, and then a random walk for 2 and 3?
I could go on. The worked solution is for random = uniform distribution across all possible reals inside the boundary, I think.