Returns a randomly selected value
Returns sample of size of type T
randomly selected elements as a list