powered by
perm(vec,duplicates=FALSE)
duplicates=TRUE
sample
perm(1:4) perm(LETTERS[4:8])
Run the code above in your browser using DataLab