Fill vector with a range of values.