What is the best way to randomly sample an associative array? I have tried the following but the randomize method always fails.
std::randomize(idx) with {assoc_array.exists(idx);};
I guess I can call next method a random number of times starting from the first element of the associative array to achieve what's needed. However, is there a better way? Why wouldn't the constrained randomization above work?