This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Range

Range[imax]
generates the list {1, 2, ..., imax}.
Range[imin, imax]
generates the list {imin, ..., imax}.
Range[imin, imax, di]
uses step di.
  • The arguments to Range need not be integers.
  • Range starts from imin, and successively adds increments of di until the result is greater than imax.
  • Range uses the standard Mathematica iteration specification, as applied to a single variable.
New in 1