Random position without overlapping

no problem i was affraid you said that, did you have an idea how can i stop your make-myrects inside of it ?
Like :

void make_myrects() {
  myrects = new ArrayList<MyRect>();                                    // reset
  for (int i=0; i<many; i++) {
    random_set();                                                       // init random rect settings
    if ( avoid_collide ) while ( collide(x, y, w, h) ) random_set();    // try again until not collide with existing
    myrects.add(new MyRect(x, y, w, h));                                // ok, make it and stop trying
    /////stop//////
    println("i "+i+" x "+x+" y "+y+" w "+w+" h "+h);
  }
}