Constraint question

In reply to rag123:

You need to clarify what you mean by “not consecutive”. The constraint
hello[i-1] != hello[ i];
prevents consecutive elements in the array from having the same value. You would not use const for that.

If you wanted to prevent the same element from having the same value between consecutive randomizations, you would use
hello[ i] != const’(hello[ i]);

.