numericBetween method

int numericBetween(
  1. int min,
  2. int max
)

Generate random numeric, between min and max.

Implementation

int numericBetween(int min, int max) {
  Random _rnd = Random();

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