I am trying to randomize a constructed list where the order is kept the same as another randomized list.

My first list is based on the parent list Q9List and the syntax that I am using is

ADD (Q9List,1,15) Randomize (RespNum() * 1000 + PageNumber(),1,12)

My second list is based on the parent list Q9List and the syntax that I am using is:

Begin Unverified Perl if (GETVALUE ("Q9_r1_c1") == 1 || GETVALUE ("Q9_r1_c2") == 1) { ADD ("Q9List",1); } if (GETVALUE ("Q9_r2_c1") == 1 || GETVALUE ("Q9_r2_c2") == 1) { ADD ("Q9List",2); } if (GETVALUE ("Q9_r3_c1") == 1 || GETVALUE ("Q9_r3_c2") == 1) { ADD ("Q9List",3); } if (GETVALUE ("Q9_r4_c1") == 1 || GETVALUE ("Q9_r4_c2") == 1) { ADD ("Q9List",4); } if (GETVALUE ("Q9_r5_c1") == 1 || GETVALUE ("Q9_r5_c2") == 1) { ADD ("Q9List",5); } if (GETVALUE ("Q9_r6_c1") == 1 || GETVALUE ("Q9_r6_c2") == 1) { ADD ("Q9List",6); } if (GETVALUE ("Q9_r7_c1") == 1 || GETVALUE ("Q9_r7_c2") == 1) { ADD ("Q9List",7); } if (GETVALUE ("Q9_r8_c1") == 1 || GETVALUE ("Q9_r8_c2") == 1) { ADD ("Q9List",8); } if (GETVALUE ("Q9_r9_c1") == 1 || GETVALUE ("Q9_r9_c2") == 1) { ADD ("Q9List",9); } if (GETVALUE ("Q9_r10_c1") == 1 || GETVALUE ("Q9_r10_c2") == 1) { ADD ("Q9List",10); } if (GETVALUE ("Q9_r11_c1") == 1 || GETVALUE ("Q9_r11_c2") == 1) { ADD ("Q9List",11); } if (GETVALUE ("Q9_r12_c1") == 1 || GETVALUE ("Q9_r12_c2") == 1) { ADD ("Q9List",12); } End Unverified Randomize (RespNum() * 1000 + PageNumber(),1,12) Begin Unverified Perl if (GETVALUE ("Q9_r13_c1") == 1 || GETVALUE ("Q9_r13_c2") == 1) { ADD ("Q9List",16); } if (GETVALUE ("Q9_r14_c1") == 1 || GETVALUE ("Q9_r14_c2") == 1) { ADD ("Q9List",17); } if (GETVALUE ("Q9_r15_c1") == 1 || GETVALUE ("Q9_r15_c2") == 1) { ADD ("Q9List",18); } End Unverified

But the code is not working.

Thank you for your help

Thank you for your response.

The second Perl set is adding the others to the list. I don't wish for those answer choices to be randomize.

How is the || GETVALUE part incomplete on each statement? I don't see it.

Randomizing a set to 10 things will give you completely different ordering than randomizing a set to nine things. I understand and that makes sense. I will try your suggestion regarding adding the the first constructed list to the second constructed list then using unverified Perl to remove things that don't belong.

Thank you