code: public static Year randomYearBefore(int before) {
      checkArgument(before > MIN_YEAR, "Before must be after %s", MIN_YEAR);
      return Year.of(RandomUtils.nextInt(MIN_YEAR, before));
    }
docs: Returns a random {@link Year} that is before the given {@link RandomDateUtils#MIN_INSTANT}.
  
  @param before the value that returned {@link Year} must be before
  @return the random {@link Year}
  @throws IllegalArgumentException if before is less than or equal to 1970