LoadRandomSequence method

List<int> LoadRandomSequence(
  1. num count,
  2. num min,
  3. num max
)

Load random values sequence, no values repeated, min and max included

Implementation

List<int> LoadRandomSequence(
  num count,
  num min,
  num max,
) => run(
  () => _debugLabels.LoadRandomSequence(count, min, max),
  () {
    final seq = _flat.LoadRandomSequence(
      count.toInt(),
      min.toInt(),
      max.toInt(),
    );
    final List<int> values = .generate(count.toInt(), (i) => seq[i]);
    _flat.UnloadRandomSequence(seq);
    return values;
  },
);