numberBetween method

int numberBetween([
  1. int min = 0,
  2. int max = 9999
])

Implementation

int numberBetween([int min = 0, int max = 9999]) {
  return Random().nextInt((max - min) + 1) + min;
}