generateRandomNumber static method

int generateRandomNumber(
  1. int min_data,
  2. int max_data
)

Implementation

static int generateRandomNumber(int min_data, int max_data) {
  final random = Random();
  return random.nextInt(max_data - min_data + 1) + min_data;
}