integer static method

int integer(
  1. int length
)

Generate a random Integer value.

Implementation

static int integer(int length) {
  return Random().nextInt(length);
}