Hello all,
I would like to hear if there is someone here that can help me figure out how to do this.
I have an array with some values in example: array(7.50, 9, 4.50, 6.50, 3.75); now I would like to distribute them to 3 other arrays and get the values in each of the new arrays so close to the average of the first array values.
I get the average to 10.416666666667 so a cool result could be: array_1(9), array_2(4.5, 6.50) & array_3(7.50, 3.75).
I really don't know how to do this.
Please let me know if you have an idea on how to solve this.
Best regards
Wizzuriz