def in_range(low, high, max):
    """ Determines if the passed values are in the range. """
    if low < 0 or low > high:
        return 0
    if high < 0 or high > max:
        return 0
    return 1
