I guess what I'm not following is what you are trying to accomplish in terms of randomization. When you say that the order is supposed to be the same (deceased, attachment, close, unknown x 3) then why are you randomizing the order of your trials via the WGR column? I'm asking because when I run it, it seems like what I would expect given the content of your input file. Hmm.