samples method

Iterable<T> samples({
  1. Random? random,
})

Returns an infinite source of random samples within the distribution.

Implementation

Iterable<T> samples({Random? random}) sync* {
  for (;;) {
    yield sample(random: random);
  }
}