I have a list of 15 choices (say 1-15). I want to select 5 choices from this list at random to be displayed for Q1. and a separate 5 for Q2 (with no overlap).
Further, the display order must be preserved for both questions (if choices 1,3,4,7,8 were selected for q1, they should be displayed in that order and not as say 1,7,4,8,3). (So I cannot use advanced randomization).
I was thinking of using a randomizer to randomly set 5 out of 15 'flags' to 'on' and for Q1 display only those choices which have the corresponding flag=on.
What I am unable to do is for Q2 - how do I randomly select 5 of the 10 remaining choices to display for q2?
Any help would be appreciated - thanks!
Random choices from a list, maintaining order

Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.