newImage("Untitled", "RGB", 400, 400, 1); width = getWidth(); height = getHeight(); for (i=0; i<1000; i++) { if (nSlices!=1) exit; w = random()*width/2+1; h = random()*width/2+1; x = random()*width-w/2; y = random()*height-h/2; setForegroundColor(random()*255, random()*255, random()*255); makeOval(x, y, w, h); run("Fill"); }