getInt method

int getInt({
  1. int min = 0,
  2. int max = 10000,
})

Implementation

int getInt({int min = 0, int max = 10000}) {
  Random random = Random();

  return min + random.nextInt(max - min);
}