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

In reply to cgales:

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?

Hi, this is a very simplified part of the code as there are few reasons for it.
The ‘tmp_hw2sw_ring’ is later used as an assignment to a multidimensional array.

Why, Do you think the err is related to the fact that its a local var?