getInt method

int getInt(
  1. int max
)

Implementation

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