The function is able to generate K numbers which add up to M. M can be also a complex number.
Does not accepts constraints in the generation of the numbers. This means the feasibility problem is not addressed.
Mario CASTRO GAMA (2020). Generate K random numbers which sum M (https://www.mathworks.com/matlabcentral/fileexchange/45490-generate-k-random-numbers-which-sum-m), MATLAB Central File Exchange. Retrieved .