Generation of random permutations of given number of elements using random sampling numbers