randomColors static method

List<Color> randomColors(
  1. int min,
  2. int max
)

Implementation

static List<Color> randomColors(int min, int max) {
  List<Color> colors = <Color>[];
  for (int i = 0; i < rng.nextInt(max - min) + min; i++) {
    colors.add(randomColor());
  }
  return colors;
}