function P=randLabel(P,maxl,p) P(1).label=randi(maxl); for x=2:length(P) if(rand()