Tick generator using interval.

Close #1166.
Doc here no longer 100% true due to end ticks.  Add something like
"(not including the end ticks)"