Creates a permutation of given size.
resample(x, size, ...)
x
the x vector.
size
resampling size.
...
optional argument.
A resample of x is returned.