if they are both circle you can try using (blured if you want to do it on your own)
if(dist(x,y,x2,y2) < r1 + r2) {
x2 = random(width)
y2 = random(height)
score++;
}
if they are both circle you can try using (blured if you want to do it on your own)
if(dist(x,y,x2,y2) < r1 + r2) {
x2 = random(width)
y2 = random(height)
score++;
}