// RandomSampleAndMeasure.txt // get random areas, measure, and label them // G. Landini at bham. ac. uk saveSettings(); original=getTitle(); setForegroundColor(255,0,0); width = getWidth()-30; // width of ROi height = getHeight()-30; // height of ROI RoisN =50; // number of ROIs trials=5000 ; //maximum trials to avoid infinite loop i=0; j=0; xa=newArray(RoisN); ya=newArray(RoisN); run("Duplicate...", "title=Reference"); run("8-bit"); //make it greyscale run("RGB Color"); //RGB to display colours while (i