generates n linearly-spaced points between d1 and d2.
an array of lineraly space points.
The min value
The max value
The number of points to generated