Specific instance of Problem I have an int range from 1-100. I want to generate n total numbers within this range that are as evenly distributed
Extra dependency and maybe overkill, but short, tested and should give correct results: numpy.linspace
>>> numpy.linspace(1, 100, 4).astype(int).tolist() [1, 34, 67, 100]