Constraint dynamic array

In reply to megamind:

The size method is a query function that returns a value—you can’t make an assignment to it. If you put the size method as part of a constraint expression, the constraint solver will change the size of the array to make the expression evaluate true.

You should always test return value of randomize. It returns true if the solver was able to find values that satisfy the constraints. It returns false if it was unable to satisfy the constraints and leaves the random variables on modified, which in this case is all 0’s.

The solver is unable to satisfy the constraints because they are only five values greater than 10 and you’ve asked for 10 unique values.