sample

fun sample(): T

Returns a randomly selected value


fun sample(size: Int): List<T>

Returns sample of size of type T

Return

randomly selected elements as a list