code: public static int asInt(final String datum, final int n) {
      if ((datum == null) || datum.isEmpty()) {
        throw new SketchesArgumentException("Input is null or empty.");
      }
      final byte[] data = datum.getBytes(UTF_8);
      return asInteger(toLongArray(data), n); //data is byte[]
    }
docs: Returns a deterministic uniform random integer between zero (inclusive) and
  n (exclusive) given the input datum.
  @param datum the given String.
  @param n The upper exclusive bound of the integers produced. Must be &gt; 1.
  @return deterministic uniform random integer