I have a queue of registers that I instantiate with the registers in the memory map. What happens is that some of these registers will be written into directly using RAL, and others will be written through another method. My test is supposed to randomize the number and names of the two sets of registers each time. How can I randomize the number and names of the registers to be selected for each configuration without duplicating?
The result can be any format that will allow me to use these registers, so if it results in two sub-queues it would be fine.
EDIT:
So I can have a queue like this:
reg_queue = {reg_item1, reg_item2, reg_item3, reg_item4, reg_item5, reg_item6}
And I want to randomly select a number of these registers to write to using say Method A, and the rest will be written to using Method B.
So I may end up having 2 queues: reg_queue_a = {reg_item3, reg_item1, reg_item4, reg_item5) and reg_queue_b = {reg_item2, reg_item6}
Can I do this with a shuffle or something?