Shuffles the elements of a vector such that no single element is in the same place it was before.

shuffler(inVec)

Arguments

inVec

The input vector

Value

A shuffled version of the input vector

References

http://stackoverflow.com/a/19898689/1270695

Author

Ananda Mahto

Examples

shuffler(letters[1:10])
#> [1] "c" "f" "b" "h" "i" "d" "e" "g" "j" "a"