How to get a value in an array based on the sampled value

Oh sorry I missed what your problem was. So you are not succeeding in indexing m_test with a random variable. What error are you seeing?

1 Like