sampled<T> function

Generator<T> sampled<T>(
  1. List<T> values
)

Picks a value randomly from a fixed list of values.

tc.draw(sampled(['a', 'b', 'c']))

Implementation

Generator<T> sampled<T>(List<T> values) => SampledGenerator(values);