powered by
Generate batch permutations
generate_permutations(x)
a vector with elements to permute
Generates permutations of dim. If more than 6 dim (highly unlikely) a sample of 1000 combinations is drawn. Otherwise all possible permutations are returned.