give me code to generate random permutation for a very long sequence