Random sample of the elements of an array. Equivalent to R's sample().
Always samples from the elements of x. R's special case where a single number x
means 1:x is not supported; use sampleInt for that. Uses the same random
numbers as R, so results match R for the same seed.
Random sample of the elements of an array. Equivalent to R's
sample().Always samples from the elements of
x. R's special case where a single numberxmeans1:xis not supported; use sampleInt for that. Uses the same random numbers as R, so results match R for the same seed.