I have a total of 10,000 units that I want to distribute among 99 points in a non-uniform manner following an increasing linear curve. The value assigned to each point will progressively increase from the first point to the last, where the final point might be allocated a higher value like 250 units. However, all the points must collectively add up to the full amount of 10,000 units. Is there a method to achieve this distribution effectively?
// Note: The examples of 10 and 250 units for the initial and final values are just placeholders; they can be any values. The total sum (10,000 units) should remain variable so it can be adjusted to a different figure, like 20,000 units in the future.