r = R * sqrt(random()) theta = random() * 2 * PI x = centerX + r * cos(theta) y = centerY + r * sin(theta)