LoadRandomSequence method
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;
},
);