Returns an array whose elements are a generated sequence of numbers.