I want to randomize an multi dimension array in such a way that it should contain "unique" values. without using the "unique" keyword
How to write constraint for that ?
In the below example I want all the index have the unique value i.e. ary[0][0]=2,ary[0][1] =4, .....
for example
rand int ary[2][2];
constraint unique_value{
foreach(ary[i,j]) {
ary inside{1:4};
}