Generate the array of unique values without using random and constraints

Without using Random variable and constraint, you can generate array of random unique values using below code, but it is not fully random.

int unsigned data[10];
initial begin
foreach (data[i]) begin
data[i] = i;
// or data[i] = i * i;
end
data.shuffle();
end