getInt static method

int getInt(
  1. int max
)

Implementation

static int getInt(int max) {
  return Random().nextInt(max);
}