random permutation of the integers from 1 to n
retval = randperm(n)
number of integers to permute
a permutation
ycollet@freesurf.fr