samplingRandom

fun samplingRandom(n: Int, seed: Int? = null): SamplingOptions

Returns a subset of randomly selected items.

Examples

Parameters

n

Number of items to return.

seed

Number used to initialize a pseudo random number generator.