setBatchMode(true); run("Clear Results"); run("AuPbSn 40 (56K)"); t0 = getTime; size=25;; for (i=0; i<1000000; i++) { x = round(random()*(getWidth-size)); y = round(random()*(getHeight-size)); makeRectangle(x, y, size, size); getStatistics(area, mean); setResult("X", i, x); setResult("Y", i, y); setResult("Mean", i, mean); } updateResults; print((getTime-t0)/1000+" seconds");