Expression of this type cannot be used to index the array

In reply to karan_18:

Hello Karan !

THanks for your inputs. Had the reverse working at my end as well. But was wondering if cycleling through the assoc array during randomization isn’t possible at all?