fixed permutation generator