randomNumber static method

int randomNumber({
  1. int max = 999,
})

Implementation

static int randomNumber({int max = 999}) {
  return Random.secure().nextInt(max);
}