Shuffles the elements of a vector such that no single element is in the same place it was before.
shuffler(inVec)
inVec | The input vector |
---|
A shuffled version of the input vector
http://stackoverflow.com/a/19898689/1270695
Ananda Mahto
shuffler(letters[1:10])#> [1] "c" "f" "b" "h" "i" "d" "e" "g" "j" "a"