Hi, all
class a;
rand int a[10];
rand int b
rand int index_max;
endclass: a
if I want to implement a constraint that meet the followings at the same time:
- 0 < a[i] < 100;
- 1 <= index_max <= 10;
- the sum of a[0] to a[index_max] equals b;
anyone can give me some advises, thanks