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