The code you provided generates "n" random points inside a circle centered in the randomly generated point (xc,yc). The radius of the circle is also random.
It's not clear your question; furthermore your sentence
"I have to make M points in a circle with radius..."
contains not readable characters. Probably the syntax is not correct.
Actually, I have to simulate a circular cell with radius R= 200 m, where the transmitter is at one end and the receiver is at another end. Then 20 other transmitters are generated randomly with uniform distribution inside a circle with radius 0.1R <d<0.5R.
Finally, I need to find the distance of each these transmitter generated in the inner circle to the single transmitter located on the outer circle.
Need your help please/