numbers method

List<int> numbers (
  1. num max,
  2. num times
)

Generates a random number from the max value and by the number of times.

Returns a list of numbers.

Implementation

List<int> numbers(num max, num times) {
  var number = <int>[];

  for (var i = 0; i < times; i++) {
    number.add(_rng.nextInt(max));
  }
  return number;
}