sample method

Coral<List<E>> sample(
  1. int count, [
  2. Random? random
])

Selects count elements at random from this collection reactively.

Implementation

Coral<List<E>> sample(int count, [Random? random]) =>
    coral.map((source) => List.unmodifiable(source.sample(count, random)));