Skip to contents

Shuffles a vector rapidly

Usage

shuffle_cpp_wrap(w, seed = NA_integer_)

Arguments

w

The vector to be shuffled

seed

Optional integer seed; use NA to draw from the system clock

Value

The vector with elements shuffled

Author

Adam Kapelner

Examples

if (FALSE) { # \dontrun{
shuffle_cpp_wrap(1:5, seed = 1)
} # }