generateRandomDigit method

int? generateRandomDigit([
  1. int from = 0,
  2. int to = 99
])

Implementation

int? generateRandomDigit([int from = 0, int to = 99]) {
  return Random().numberBetween(from, to);
}