Randomization of "triangular shaped" distribution around desired average

In reply to l87:

What I’m trying to ask is if the average of the array elements a hard constraint? Or is it enough to just have the triangular distribution. It might be too difficult to have both constraints.