The range of a function is the set of values it takes over its entire domain. Equivalently, if we consider the function to be its set of ordered pairs, it is the set of values that occur as the ordinate (second-place value) in the ordered pairs. The range is a subset of the codomain. See the function article for a full exposition.