Random Samples and Permutations Take a sample of the specified size from the elements of x with or without replacement.
Useful links