generateArray method

List<int> generateArray(
  1. List arrays,
  2. int size
)

Implementation

List<int> generateArray(List<dynamic> arrays, int size) {
  int r = generateRandomNumber(arrays.length);
  List<int> temp = List<int>.generate(size, (index) => 0, growable: false);
  for (int j = 0; j < size; j++) {
    temp[j] = arrays[r][j];
  }
  return temp;
}