Most ranges in computer sciences are defined on the inclusive‑exclusive basis. Look at
this method. Look at the names of the method parameters, which aree particularly helpful in this case. And now look at this
method, which is subtly different.
On the inclusive‑exclusive basis, 0...10 includes 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.
On the inclusive basis, 0...10 includes 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10.