Constraint to get the previous Randomized Value

Hi,
I have used const’() function to get the previous randomized value.It is working fine for Questa,but it is throwing error for other Simulators. Can any one suggest me a proper way to get the previous randomized value?

Thank you in advance.

In reply to Ravi Teja Akuthota:

u can store the value in one queue and assign that value to the next value in the post_randomization method

In reply to Berlin:

In reply to Ravi Teja Akuthota:
u can store the value in one queue and assign that value to the next value in the post_randomization method

Yeah Thank you I got it and I am trying the same.