If you want to get evenly spaced numbers over a specific interval, use np.linspace(start, stop, num).
np.linspace(start, stop, num)
The code above shows a use case of the np.linspace method.
np.linspace
Link to the source code.