nextInts method

List<int?> nextInts(
  1. int size
)

Return a list of random ints of size.

Implementation

List<int?> nextInts(int size) {
  if (size <= 0) {
    throw ArgumentError("size less then equal to zero");
  }

  List<int> buff = List.filled(size, 0);
  for (int i = 0; i < size; i++) {
    buff[i] = (sample() * (mBig + 1)).toInt();
  }

  return buff;
}