public static short getRandomShort(Random random) {
    return (short) random.nextInt(Short.MAX_VALUE + 1);
  }
Returns a random short using the {@code Random} passed as arg
@param random the {@link Random} object that needs to be used to generate the random short
@return a random short in the range [0, Short.MAX_VALUE].
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java