In reply to cgales:
Hi,
Thanks.fixed syntax.
parameter min = 0;
parameter max = 10000;
class line;
rand int unsigned x_start,x_end;
constraint c1 {
x_start inside {[min:max]};
x_end inside {[min:max]};
x_start < x_end;
unique{x_start,x_end};
}
endclass
still the start and end are overlapping for small chunks.