[bit.listserv.sas-l] duplicates in sampling with replacement

AOWALSH@FORDMURH.BITNET (02/12/90)

When bootstrapping the correlation coefficient with small n's it is possible
to get samples containing only 1 or 2 different observations. IN the code below
taken from the SAS Applications Guide,how can the above cases be detected ?
Any suggestions would be appreciated. I am using SAS 5.18 under vms 5.2 without
IML.            do i=1 to n;
                iobs=int(ranuni(0)*N+1);
                set sample point=iobs nobs=N;
                output;
                end;
                stop;