In SAS 9.3, you can use the RANPERM function to generate random permutations: