I am trying to calculate the distribution of a number of units between two points with a desired average not necessarily in the middle. In an even distribution I would normally find the difference between the two points and use the result to divide the number of units for distribution. 100 units 50 - 0 = 50 100 / 50 = 2 per interval $50 / 2 = $25.00 So in the above if I had a 100 units that I wanted sell evenly for between $50 and $1 with an average price of $25. I would have to sell 2 units at $50, 2 for $49 ... and so on until inventory was depleted. My question is lets say I wanted to sell the exact same number of units between the exact dollar values, but I wanted to skew my distribution so that my average final sale price was say $30 or $20. How would I go about calculating that ?