In reply to dave_59:
Hi Dave,
How to pick an element from an associative array randomly?
I have a requirement that I need to read from an already written location. I store the start address of that location as associative array index and length of that write as that index’s element.
int sa_and_dwlen_arry[int];
I will check the size before a read, but how to chose a start address and length randomly? Can we shuffle an associative array also? If so, the element should also move along with index, right?
Or I need to use array of struct where struct will contain both start address and length?
-mpattaje