nextInt method

int nextInt(
  1. int max
)

Get a random integer between 0 inclusive and max exclusive

Implementation

int nextInt(int max) => _random.nextInt(max);