We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi! This should be easy but I'm stuck :-/
I have the values 3,4 and 5
I have an array where I put these values randomly. The array stops accepting values when the total sum of values hits 50. I'm close, but sometimes the total sum is 48 or 49 because in some cases the partial sum is 48 or 49 and my lowest value is 3 to fill it. I need that (whatever the distribution of values is) the sum is always 50.
How to do this in an elegant way?