In reply to bonny1989:
same thing will work with std::randomize, as you asked for
std::randomize(a,b) with {
unique {a[0]}; //you can use foreach here - I have problem with simulator
unique {a[1]};
unique {a[2]};
unique {a[3]};
unique {b[0]};
unique {b[1]};
unique {b[2]};
unique {b[3]};
foreach(a[i,j]) a[i][j] == b[j][i];
};