This post aims to provide an efficient method of generating uniformly distributed coordinates in a given ring area.
Without loss of generality, the ring area is illustrated in the figure below. The inner and outer radii are R1 and R2, respectively, R1<R2. The corresponding angular scope starts from Θ1 and ends at Θ2, Θ1<Θ2.
In polar coordinate system, the joint probability density function (PDF) of the radius and angle can be written as
fR,Θ(r,θ)=(Θ2−Θ1)(R22−R12)2r,
where θ∈[Θ1,Θ2], r∈[R1,R2].
Then, the PDFs of the radius and angle can be expressed as