Make stuff stop overlapping

My project had 6 circles. Each one will start in a random position.
I wrote this so they wont overlap:

    if(this.hitTest("five", "four", "three", "two", "two", "one")) {
        this.x=random.integer(250,1650);
        this.y=random.integer(310,950);
    }

its not working. all of my circles are like this.
image

please send help. i beg.

i think hitTest takes only one argument, not a variable amount. so you would need to write it like this:

if (this.hitTest("five") || this.hitTest("four") || this.hitTest("three") || this.hitTest("two") || this.hitTest("two wait what") || this.hitTest("one")) {
 bla bla bla
}

also that isn’t good code, if you wanted to add more circles you would have to add more hitTests… i think you should store all the clips in an array of circles and use this:

for (let circle of circles) {
  if (this.hitTest(circle)) {
    bla bla bla
    break;
  }
}

This file makes the numbers re-randomize once things overlap:
Klicker12-6-2020_6-29-43PM.wick (326.8 KB)