nextIntFrom method

int nextIntFrom(
  1. int low,
  2. int high
)

Returns a random intenger in the range [low, high).

Implementation

int nextIntFrom(int low, int high) => low + nextInt(high - low);