なんかダメポだな。どういうギャグだ。

もっと素直にやった方がいいよ。

theta = 2*Math.PI*Math.random();
x = r*Math.cos(theta);
y = r*Math.sin(theta);

とか。