Value of member class are not updated

In reply to saritr:

Hi saritr,

Above example is for reference only to identify an issue.
Preferred approach to solve this will be to use In-line constraints — randomize() with,a system verilog construct !!