randomInt function

int randomInt(
  1. int max
)

Returns a random int from 0 to max - 1.

Implementation

int randomInt(int max) {
  return _random.nextInt(max);
}