Takes a permutation sample. See the Details section below for further information.
Details
This function is a wrapper to the sample.int
function.
Examples
#Set seed for reproducibility
set.seed(seed = 5381L)
#Random sequence of N elements from 1 to N
permutationSample(N = 10)
#> [1] 1 9 7 2 4 3 6 10 5 8