Err - A reference to a rand variable in an array index is not currently supported in this context

In reply to yakirye:

I’m not sure why you are attempting to randomize a local variable in the post_randomize() function. Why don’t you make tmp_hw2sw_ring a class variable and randomize it with the class constraints?