Distribution of a collection of values to equal 100

Weighting question…how can I determine a set of unique weighting values programmatically/mathematically based on the number of elements to equal 100. For example, If I have 23 steps from 1 to 100, how do I get those 23 steps graphed along a particular curve to get distributed where the sum of all 23 values equal 100? Here’s what I have so far.

findWeights.gh (13.6 KB)

Maybe this?

1 Like