sampleWithoutReplacement

Creates a new array that contains a randomly sampled values without replacement from the existing population.

Return

the sampled array

Parameters

sampleSize

the number to sample