// output of ./demo/perm/permrand-sdc-demo.cc: // Description: //% Random permutations with prescribed Sets into Distinct Cycles arg 1: 5 == n [Number of elements.] default=5 arg 2: 15 == rep [This many permutations.] default=15 args 3,4,... : [Supply at least on number >=1] cn=1 f=[ 3 2 4 1 0 ] (3, 2, 4, 1, 0) f=[ 4 2 1 0 3 ] (4, 2, 1, 0) (3) f=[ 3 2 1 0 4 ] (3, 2, 1, 0) (4) f=[ 4 1 3 0 2 ] (4, 1, 3, 0) (2) f=[ 1 2 0 3 4 ] (1, 2, 0) (3) (4) f=[ 3 4 2 1 0 ] (3, 4, 2, 1, 0) f=[ 2 3 1 4 0 ] (2, 3, 1, 4, 0) f=[ 3 1 2 0 4 ] (3, 1, 2, 0) (4) f=[ 2 4 3 1 0 ] (2, 4, 3, 1, 0) f=[ 1 3 2 4 0 ] (1, 3, 2, 4, 0) f=[ 4 2 3 1 0 ] (4, 2, 3, 1, 0) f=[ 1 0 4 2 3 ] (1, 0) (4, 2) (3) f=[ 4 2 3 1 0 ] (4, 2, 3, 1, 0) f=[ 1 4 3 2 0 ] (1, 4, 3, 2, 0) f=[ 1 4 0 3 2 ] (1, 4, 0) (3, 2)