code: public static boolean inRange(Range range, double val) {
          return val >= range.min() && val <= range.max();
      }
docs: Check if a certain value is in range
  
  @param range range info
  @param val the value to check;
  @return true if it is in range, false otherwise.