For a little project of mine [0], I want to generate a <i>set</i> of uniformly distributed RGB values that then average to another RGB value which is known in advance. Would this be possible using the same approach?<p>Edit: Yes, it seems to, instead of generating and summing over RGB, it would be over all the R, G and B values separately.<p>Edit2: Hmmm, if the number of RGB values is large, the combinatorics involved seem to make it computationally infeasible...<p>[0] <a href="https://qewasd.com/" rel="nofollow">https://qewasd.com/</a>