public static final int randInt(int max) {
    return com.google.crypto.tink.internal.Random.randInt(max);
  }
Returns a random int between 0 and max-1.
java_src/src/main/java/com/google/crypto/tink/subtle/Random.java