nextRandom method
void
nextRandom()
Implementation
void nextRandom() {
if (_usedRandomNumbers.length == _max) {
_usedRandomNumbers = [];
}
var temp = _random.nextInt(_max!);
if (_usedRandomNumbers.indexOf(temp) >= 0) {
nextRandom();
return;
} else {
_currentRandom = temp;
}
_usedRandomNumbers.add(_currentRandom);
}