NetLogo Help: range

### range6.0

#### range stop (range start stop) (range start stop step)

Generates a list of numbers, starting at start, ending before stop, counting by step. start defaults to 0 and step defaults to 1.

    show range 5
    => [0 1 2 3 4]
    show (range 2 5)
    => [2 3 4]
    show (range 2 5 0.5)
    => [2 2.5 3 3.5 4 4.5]
    show (range 10 0 -1)
    => [10 9 8 7 6 5 4 3 2 1]

See also n-values

Take me to the full NetLogo Dictionary