clear all
load lateOffsetDat
numSamp=10000;
dprimeRemapLOMat(numSamp, 1)=zeros;
for i=1:numSamp
    sampDat = randi(length(lateOffsetDat), [length(lateOffsetDat), 1]);
    correct=0.0;
    incorrect=0.0;
   
    for n = 1:length(lateOffsetDat)
        index = sampDat(n);
        if lateOffsetDat(index,1)==1 
            correct = correct+1;
        end
        if lateOffsetDat(index,1)==0 
            incorrect = correct+1;
        end
        
    end
  
    
    percent = correct;
    if percent<0
        percent=percent*-1;
    end
    if percent < inf
        percentData(i)=percent;
    end
end



  
        