Random position without overlapping

well it add the objects but even if the positions are correct, the loop continue.

can i put a break in makeGrass() ?

public void makeGrass(){
	grass2 = new ArrayList<Grass2>();
	for(int i = 0; i < many; i++){
		randomSet();
		if(avoidCollide) while(collide(x,y,w,h)) randomSet();
		grass2.add(new Grass2(x,y,w,h,parent));
		PApplet.println("i "+i+" x "+x+" y "+y+" w "+w+" h "+h);
	}
}

but i dont know where