Constraint to generate an array of random numbers where a certain value is repeated fixed number of times

In reply to Atresh:

In reply to dave_59:
Hi Dave,
Is there difference between sum() and sum(item)?

More characters, easier to read.