## Creating a randomized list and storing it

##### Creating a randomized list and storing it
 Author Message b_randon posted Last Year ANSWER HOT         Group: Forum Members Posts: 7, Visits: 19 Hey everyone! So I'm coding a memory experiment, during the encoding task I want to present 50 words to a participant and repeat those 50 words in the same order they were originally presented 2 more times. The 50 presented words are taken from two lists equally, so 25 words from "List 1" and 25 words from "List 2" in random and mixed order. My goal of achieving this is to populate an empty list at the beginning of the experiment with the randomly selected words from each list mixed together and present that three times to the participant. I have no idea how to do this correctly and have done some searching, but I haven't found anything that has helped me do this, but I think this is completely possible. Thank you for any and all help!   Tags Dave posted Last Year ANSWER         Group: Administrators Posts: 12K, Visits: 83K +x b_randon - 1/18/2021Hey everyone! So I'm coding a memory experiment, during the encoding task I want to present 50 words to a participant and repeat those 50 words in the same order they were originally presented 2 more times. The 50 presented words are taken from two lists equally, so 25 words from "List 1" and 25 words from "List 2" in random and mixed order. My goal of achieving this is to populate an empty list at the beginning of the experiment with the randomly selected words from each list mixed together and present that three times to the participant. I have no idea how to do this correctly and have done some searching, but I haven't found anything that has helped me do this, but I think this is completely possible. Thank you for any and all help!  Here's an example with 10 words per list, assembled into a list of 10 random selections (5 from list 1, 5 from list 2)./ trials = [1-10 = noreplace(list1, list2)]/ ontrialbegin = [    list.selection.appenditem(list.list1.nextvalue);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [    list.selection.appenditem(list.list2.nextvalue);]/ trialduration = 0/ recorddata = false/ items = (1,2,3,4,5,6,7,8,9,10)/ items = (11,12,13,14,15,16,17,18,19,20)// will hold the randomly assembled item numbers// 5 from list 1// 5 from list 2/ select = sequence// list 1: items 1 to 10// list 2: items 11 to 20/ 1 = "List 1 Item 1"/ 2 = "List 1 Item 2"/ 3 = "List 1 Item 3"/ 4 = "List 1 Item 4"/ 5 = "List 1 Item 5"/ 6 = "List 1 Item 6"/ 7 = "List 1 Item 7"/ 8 = "List 1 Item 8"/ 9 = "List 1 Item 9"/ 10 = "List 1 Item 10"/ 11 = "List 2 Item 1"/ 12 = "List 2 Item 2"/ 13 = "List 2 Item 3"/ 14 = "List 2 Item 4"/ 15 = "List 2 Item 5"/ 16 = "List 2 Item 6"/ 17 = "List 2 Item 7"/ 18 = "List 2 Item 8"/ 19 = "List 2 Item 9"/ 20 = "List 2 Item 10"/ items = allitems/ select = list.selection.nextvalue/ stimulusframes = [1=word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-10 = showword]/ preinstructions = (bpage)/ trials = [1-10 = showword]/ preinstructions = (cpage)/ trials = [1-10 = showword]^first round of 10 selected words^second round of 10 selected words^third round of 10 selected words/ blocks = [1=setup; 2=a; 3=b; 4=c] b_randon posted Last Year ANSWER         Group: Forum Members Posts: 7, Visits: 19 +x Dave - 1/18/2021+x b_randon - 1/18/2021Hey everyone! So I'm coding a memory experiment, during the encoding task I want to present 50 words to a participant and repeat those 50 words in the same order they were originally presented 2 more times. The 50 presented words are taken from two lists equally, so 25 words from "List 1" and 25 words from "List 2" in random and mixed order. My goal of achieving this is to populate an empty list at the beginning of the experiment with the randomly selected words from each list mixed together and present that three times to the participant. I have no idea how to do this correctly and have done some searching, but I haven't found anything that has helped me do this, but I think this is completely possible. Thank you for any and all help!  Here's an example with 10 words per list, assembled into a list of 10 random selections (5 from list 1, 5 from list 2)./ trials = [1-10 = noreplace(list1, list2)]/ ontrialbegin = [    list.selection.appenditem(list.list1.nextvalue);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [    list.selection.appenditem(list.list2.nextvalue);]/ trialduration = 0/ recorddata = false/ items = (1,2,3,4,5,6,7,8,9,10)/ items = (11,12,13,14,15,16,17,18,19,20)// will hold the randomly assembled item numbers// 5 from list 1// 5 from list 2/ select = sequence// list 1: items 1 to 10// list 2: items 11 to 20/ 1 = "List 1 Item 1"/ 2 = "List 1 Item 2"/ 3 = "List 1 Item 3"/ 4 = "List 1 Item 4"/ 5 = "List 1 Item 5"/ 6 = "List 1 Item 6"/ 7 = "List 1 Item 7"/ 8 = "List 1 Item 8"/ 9 = "List 1 Item 9"/ 10 = "List 1 Item 10"/ 11 = "List 2 Item 1"/ 12 = "List 2 Item 2"/ 13 = "List 2 Item 3"/ 14 = "List 2 Item 4"/ 15 = "List 2 Item 5"/ 16 = "List 2 Item 6"/ 17 = "List 2 Item 7"/ 18 = "List 2 Item 8"/ 19 = "List 2 Item 9"/ 20 = "List 2 Item 10"/ items = allitems/ select = list.selection.nextvalue/ stimulusframes = [1=word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-10 = showword]/ preinstructions = (bpage)/ trials = [1-10 = showword]/ preinstructions = (cpage)/ trials = [1-10 = showword]^first round of 10 selected words^second round of 10 selected words^third round of 10 selected words/ blocks = [1=setup; 2=a; 3=b; 4=c]Hi Dave! Thank you for your response. I'm a little bit confused about how to plug everything in, would you be able to help with the provided two example lists I have below. My apologies for asking you to repeat yourself, I'm a bit new to working with Inquisit.  /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island" /11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"Should I change these from item elements to a list element? Again, I want to randomly select every item from both lists with no repeats and add them into a new list that I will then use to present to participants three times. Thank you for your help. Dave posted Last Year ANSWER         Group: Administrators Posts: 12K, Visits: 83K +x b_randon - 1/18/2021+x Dave - 1/18/2021+x b_randon - 1/18/2021Hey everyone! So I'm coding a memory experiment, during the encoding task I want to present 50 words to a participant and repeat those 50 words in the same order they were originally presented 2 more times. The 50 presented words are taken from two lists equally, so 25 words from "List 1" and 25 words from "List 2" in random and mixed order. My goal of achieving this is to populate an empty list at the beginning of the experiment with the randomly selected words from each list mixed together and present that three times to the participant. I have no idea how to do this correctly and have done some searching, but I haven't found anything that has helped me do this, but I think this is completely possible. Thank you for any and all help!  Here's an example with 10 words per list, assembled into a list of 10 random selections (5 from list 1, 5 from list 2)./ trials = [1-10 = noreplace(list1, list2)]/ ontrialbegin = [    list.selection.appenditem(list.list1.nextvalue);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [    list.selection.appenditem(list.list2.nextvalue);]/ trialduration = 0/ recorddata = false/ items = (1,2,3,4,5,6,7,8,9,10)/ items = (11,12,13,14,15,16,17,18,19,20)// will hold the randomly assembled item numbers// 5 from list 1// 5 from list 2/ select = sequence// list 1: items 1 to 10// list 2: items 11 to 20/ 1 = "List 1 Item 1"/ 2 = "List 1 Item 2"/ 3 = "List 1 Item 3"/ 4 = "List 1 Item 4"/ 5 = "List 1 Item 5"/ 6 = "List 1 Item 6"/ 7 = "List 1 Item 7"/ 8 = "List 1 Item 8"/ 9 = "List 1 Item 9"/ 10 = "List 1 Item 10"/ 11 = "List 2 Item 1"/ 12 = "List 2 Item 2"/ 13 = "List 2 Item 3"/ 14 = "List 2 Item 4"/ 15 = "List 2 Item 5"/ 16 = "List 2 Item 6"/ 17 = "List 2 Item 7"/ 18 = "List 2 Item 8"/ 19 = "List 2 Item 9"/ 20 = "List 2 Item 10"/ items = allitems/ select = list.selection.nextvalue/ stimulusframes = [1=word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-10 = showword]/ preinstructions = (bpage)/ trials = [1-10 = showword]/ preinstructions = (cpage)/ trials = [1-10 = showword]^first round of 10 selected words^second round of 10 selected words^third round of 10 selected words/ blocks = [1=setup; 2=a; 3=b; 4=c]Hi Dave! Thank you for your response. I'm a little bit confused about how to plug everything in, would you be able to help with the provided two example lists I have below. My apologies for asking you to repeat yourself, I'm a bit new to working with Inquisit.  /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island" /11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"Should I change these from item elements to a list element? Again, I want to randomly select every item from both lists with no repeats and add them into a new list that I will then use to present to participants three times. Thank you for your help. /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island"/11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"/ trials = [1-50 = noreplace(high_setup, low_setup)]/ ontrialbegin = [  list.high_order.appenditem(list.highlist.nextindex);    list.trial_order.appenditem(trial.show_high);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [  list.low_order.appenditem(list.lowlist.nextindex);    list.trial_order.appenditem(trial.show_low);]/ trialduration = 0/ recorddata = false/ poolsize = 25/ poolsize = 25/ selectionmode = sequence/ select = sequence/ select = sequence/ items = high_list/ select = list.high_order.nextvalue/ items = low_list/ select = list.low_order.nextvalue/ stimulusframes = [1=high_word]/ trialduration = 1000/ stimulusframes = [1=low_word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-50 = list.trial_order]/ preinstructions = (bpage)/ trials = [1-50 = list.trial_order]/ preinstructions = (cpage)/ trials = [1-50 = list.trial_order]^first round^second round^third round/ blocks = [1=setup; 2=a; 3=b; 4=c] b_randon posted Last Year ANSWER         Group: Forum Members Posts: 7, Visits: 19 +x Dave - 1/18/2021+x b_randon - 1/18/2021+x Dave - 1/18/2021+x b_randon - 1/18/2021Hey everyone! So I'm coding a memory experiment, during the encoding task I want to present 50 words to a participant and repeat those 50 words in the same order they were originally presented 2 more times. The 50 presented words are taken from two lists equally, so 25 words from "List 1" and 25 words from "List 2" in random and mixed order. My goal of achieving this is to populate an empty list at the beginning of the experiment with the randomly selected words from each list mixed together and present that three times to the participant. I have no idea how to do this correctly and have done some searching, but I haven't found anything that has helped me do this, but I think this is completely possible. Thank you for any and all help!  Here's an example with 10 words per list, assembled into a list of 10 random selections (5 from list 1, 5 from list 2)./ trials = [1-10 = noreplace(list1, list2)]/ ontrialbegin = [    list.selection.appenditem(list.list1.nextvalue);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [    list.selection.appenditem(list.list2.nextvalue);]/ trialduration = 0/ recorddata = false/ items = (1,2,3,4,5,6,7,8,9,10)/ items = (11,12,13,14,15,16,17,18,19,20)// will hold the randomly assembled item numbers// 5 from list 1// 5 from list 2/ select = sequence// list 1: items 1 to 10// list 2: items 11 to 20/ 1 = "List 1 Item 1"/ 2 = "List 1 Item 2"/ 3 = "List 1 Item 3"/ 4 = "List 1 Item 4"/ 5 = "List 1 Item 5"/ 6 = "List 1 Item 6"/ 7 = "List 1 Item 7"/ 8 = "List 1 Item 8"/ 9 = "List 1 Item 9"/ 10 = "List 1 Item 10"/ 11 = "List 2 Item 1"/ 12 = "List 2 Item 2"/ 13 = "List 2 Item 3"/ 14 = "List 2 Item 4"/ 15 = "List 2 Item 5"/ 16 = "List 2 Item 6"/ 17 = "List 2 Item 7"/ 18 = "List 2 Item 8"/ 19 = "List 2 Item 9"/ 20 = "List 2 Item 10"/ items = allitems/ select = list.selection.nextvalue/ stimulusframes = [1=word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-10 = showword]/ preinstructions = (bpage)/ trials = [1-10 = showword]/ preinstructions = (cpage)/ trials = [1-10 = showword]^first round of 10 selected words^second round of 10 selected words^third round of 10 selected words/ blocks = [1=setup; 2=a; 3=b; 4=c]Hi Dave! Thank you for your response. I'm a little bit confused about how to plug everything in, would you be able to help with the provided two example lists I have below. My apologies for asking you to repeat yourself, I'm a bit new to working with Inquisit.  /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island" /11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"Should I change these from item elements to a list element? Again, I want to randomly select every item from both lists with no repeats and add them into a new list that I will then use to present to participants three times. Thank you for your help. /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island"/11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"/ trials = [1-50 = noreplace(high_setup, low_setup)]/ ontrialbegin = [  list.high_order.appenditem(list.highlist.nextindex);    list.trial_order.appenditem(trial.show_high);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [  list.low_order.appenditem(list.lowlist.nextindex);    list.trial_order.appenditem(trial.show_low);]/ trialduration = 0/ recorddata = false/ poolsize = 25/ poolsize = 25/ selectionmode = sequence/ select = sequence/ select = sequence/ items = high_list/ select = list.high_order.nextvalue/ items = low_list/ select = list.low_order.nextvalue/ stimulusframes = [1=high_word]/ trialduration = 1000/ stimulusframes = [1=low_word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-50 = list.trial_order]/ preinstructions = (bpage)/ trials = [1-50 = list.trial_order]/ preinstructions = (cpage)/ trials = [1-50 = list.trial_order]^first round^second round^third round/ blocks = [1=setup; 2=a; 3=b; 4=c]Hey Dave! Thank you again for your help with this. From my understanding, this does a fantastic job of compiling a new list from equal proportions of the low and high list. As I've been playing around with the code, could you explain exactly what "trial_order" is saving? When I run the code, I'm not getting an exact repetition of the new list so I'm assuming it might be recording whether words came from the low or high list or saving the pattern of low_word and high_word picks in setup?  What I would like to save is the exact temporal order of the new mixed list. For example, during the first round, if "dog", "castle", "orange", and "cat" were presented in that order, I would need that specific temporal order saved as well as if it was originally from the low or high list. So if "dog", "castle", "orange", and "cat" is the first presentation order in block A, then that exact presentation order will be repeated in blocks B and C as well. Thank you!! Dave posted Last Year ANSWER         Group: Administrators Posts: 12K, Visits: 83K > What I would like to save is the exact temporal order of the new mixed list. For example, during the first round, if "dog", "castle", "orange", and "cat" were presented in that order, I would need that specific temporal order saved as well as if it was originally from the low or high list. So if "dog", "castle", "orange", and "cat" is the first presentation order in block A, then that exact presentation order will be repeated in blocks B and C as well. That is exactly what the code in my previous reply does and I don't know why you think otherwise. See for yourself, a data file from one such run is attached. The order of trials and words is exactly the same in all three blocks.The trial_order list, as the name suggests, saves the order of trials generated during the setup block. That same order, then, is simply reproduced in blocks A to C.The high_order and low_order lists save and reproduce the order of the high and low words generated during the setup block respectively. Attachments example_raw_1_2021-01-18-23-49-07-476.iqdat (138 views, 11.00 KB) Edited Last Year by Dave b_randon posted Last Year ANSWER         Group: Forum Members Posts: 7, Visits: 19 +x Dave - 1/18/2021+x b_randon - 1/18/2021+x Dave - 1/18/2021+x b_randon - 1/18/2021+x Dave - 1/18/2021+x b_randon - 1/18/2021Hey everyone! So I'm coding a memory experiment, during the encoding task I want to present 50 words to a participant and repeat those 50 words in the same order they were originally presented 2 more times. The 50 presented words are taken from two lists equally, so 25 words from "List 1" and 25 words from "List 2" in random and mixed order. My goal of achieving this is to populate an empty list at the beginning of the experiment with the randomly selected words from each list mixed together and present that three times to the participant. I have no idea how to do this correctly and have done some searching, but I haven't found anything that has helped me do this, but I think this is completely possible. Thank you for any and all help!  Here's an example with 10 words per list, assembled into a list of 10 random selections (5 from list 1, 5 from list 2)./ trials = [1-10 = noreplace(list1, list2)]/ ontrialbegin = [    list.selection.appenditem(list.list1.nextvalue);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [    list.selection.appenditem(list.list2.nextvalue);]/ trialduration = 0/ recorddata = false/ items = (1,2,3,4,5,6,7,8,9,10)/ items = (11,12,13,14,15,16,17,18,19,20)// will hold the randomly assembled item numbers// 5 from list 1// 5 from list 2/ select = sequence// list 1: items 1 to 10// list 2: items 11 to 20/ 1 = "List 1 Item 1"/ 2 = "List 1 Item 2"/ 3 = "List 1 Item 3"/ 4 = "List 1 Item 4"/ 5 = "List 1 Item 5"/ 6 = "List 1 Item 6"/ 7 = "List 1 Item 7"/ 8 = "List 1 Item 8"/ 9 = "List 1 Item 9"/ 10 = "List 1 Item 10"/ 11 = "List 2 Item 1"/ 12 = "List 2 Item 2"/ 13 = "List 2 Item 3"/ 14 = "List 2 Item 4"/ 15 = "List 2 Item 5"/ 16 = "List 2 Item 6"/ 17 = "List 2 Item 7"/ 18 = "List 2 Item 8"/ 19 = "List 2 Item 9"/ 20 = "List 2 Item 10"/ items = allitems/ select = list.selection.nextvalue/ stimulusframes = [1=word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-10 = showword]/ preinstructions = (bpage)/ trials = [1-10 = showword]/ preinstructions = (cpage)/ trials = [1-10 = showword]^first round of 10 selected words^second round of 10 selected words^third round of 10 selected words/ blocks = [1=setup; 2=a; 3=b; 4=c]Hi Dave! Thank you for your response. I'm a little bit confused about how to plug everything in, would you be able to help with the provided two example lists I have below. My apologies for asking you to repeat yourself, I'm a bit new to working with Inquisit.  /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island" /11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"Should I change these from item elements to a list element? Again, I want to randomly select every item from both lists with no repeats and add them into a new list that I will then use to present to participants three times. Thank you for your help. /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island"/11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"/ trials = [1-50 = noreplace(high_setup, low_setup)]/ ontrialbegin = [  list.high_order.appenditem(list.highlist.nextindex);    list.trial_order.appenditem(trial.show_high);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [  list.low_order.appenditem(list.lowlist.nextindex);    list.trial_order.appenditem(trial.show_low);]/ trialduration = 0/ recorddata = false/ poolsize = 25/ poolsize = 25/ selectionmode = sequence/ select = sequence/ select = sequence/ items = high_list/ select = list.high_order.nextvalue/ items = low_list/ select = list.low_order.nextvalue/ stimulusframes = [1=high_word]/ trialduration = 1000/ stimulusframes = [1=low_word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-50 = list.trial_order]/ preinstructions = (bpage)/ trials = [1-50 = list.trial_order]/ preinstructions = (cpage)/ trials = [1-50 = list.trial_order]^first round^second round^third round/ blocks = [1=setup; 2=a; 3=b; 4=c]Hey Dave! Thank you again for your help with this. From my understanding, this does a fantastic job of compiling a new list from equal proportions of the low and high list. As I've been playing around with the code, could you explain exactly what "trial_order" is saving? When I run the code, I'm not getting an exact repetition of the new list so I'm assuming it might be recording whether words came from the low or high list or saving the pattern of low_word and high_word picks in setup?  What I would like to save is the exact temporal order of the new mixed list. For example, during the first round, if "dog", "castle", "orange", and "cat" were presented in that order, I would need that specific temporal order saved as well as if it was originally from the low or high list. So if "dog", "castle", "orange", and "cat" is the first presentation order in block A, then that exact presentation order will be repeated in blocks B and C as well. Thank you!! +x b_randon - 1/18/2021+x Dave - 1/18/2021+x b_randon - 1/18/2021+x Dave - 1/18/2021+x b_randon - 1/18/2021Hey everyone! So I'm coding a memory experiment, during the encoding task I want to present 50 words to a participant and repeat those 50 words in the same order they were originally presented 2 more times. The 50 presented words are taken from two lists equally, so 25 words from "List 1" and 25 words from "List 2" in random and mixed order. My goal of achieving this is to populate an empty list at the beginning of the experiment with the randomly selected words from each list mixed together and present that three times to the participant. I have no idea how to do this correctly and have done some searching, but I haven't found anything that has helped me do this, but I think this is completely possible. Thank you for any and all help!  Here's an example with 10 words per list, assembled into a list of 10 random selections (5 from list 1, 5 from list 2)./ trials = [1-10 = noreplace(list1, list2)]/ ontrialbegin = [    list.selection.appenditem(list.list1.nextvalue);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [    list.selection.appenditem(list.list2.nextvalue);]/ trialduration = 0/ recorddata = false/ items = (1,2,3,4,5,6,7,8,9,10)/ items = (11,12,13,14,15,16,17,18,19,20)// will hold the randomly assembled item numbers// 5 from list 1// 5 from list 2/ select = sequence// list 1: items 1 to 10// list 2: items 11 to 20/ 1 = "List 1 Item 1"/ 2 = "List 1 Item 2"/ 3 = "List 1 Item 3"/ 4 = "List 1 Item 4"/ 5 = "List 1 Item 5"/ 6 = "List 1 Item 6"/ 7 = "List 1 Item 7"/ 8 = "List 1 Item 8"/ 9 = "List 1 Item 9"/ 10 = "List 1 Item 10"/ 11 = "List 2 Item 1"/ 12 = "List 2 Item 2"/ 13 = "List 2 Item 3"/ 14 = "List 2 Item 4"/ 15 = "List 2 Item 5"/ 16 = "List 2 Item 6"/ 17 = "List 2 Item 7"/ 18 = "List 2 Item 8"/ 19 = "List 2 Item 9"/ 20 = "List 2 Item 10"/ items = allitems/ select = list.selection.nextvalue/ stimulusframes = [1=word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-10 = showword]/ preinstructions = (bpage)/ trials = [1-10 = showword]/ preinstructions = (cpage)/ trials = [1-10 = showword]^first round of 10 selected words^second round of 10 selected words^third round of 10 selected words/ blocks = [1=setup; 2=a; 3=b; 4=c]Hi Dave! Thank you for your response. I'm a little bit confused about how to plug everything in, would you be able to help with the provided two example lists I have below. My apologies for asking you to repeat yourself, I'm a bit new to working with Inquisit.  /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island" /11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"Should I change these from item elements to a list element? Again, I want to randomly select every item from both lists with no repeats and add them into a new list that I will then use to present to participants three times. Thank you for your help. /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island"/11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"/ trials = [1-50 = noreplace(high_setup, low_setup)]/ ontrialbegin = [  list.high_order.appenditem(list.highlist.nextindex);    list.trial_order.appenditem(trial.show_high);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [  list.low_order.appenditem(list.lowlist.nextindex);    list.trial_order.appenditem(trial.show_low);]/ trialduration = 0/ recorddata = false/ poolsize = 25/ poolsize = 25/ selectionmode = sequence/ select = sequence/ select = sequence/ items = high_list/ select = list.high_order.nextvalue/ items = low_list/ select = list.low_order.nextvalue/ stimulusframes = [1=high_word]/ trialduration = 1000/ stimulusframes = [1=low_word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-50 = list.trial_order]/ preinstructions = (bpage)/ trials = [1-50 = list.trial_order]/ preinstructions = (cpage)/ trials = [1-50 = list.trial_order]^first round^second round^third round/ blocks = [1=setup; 2=a; 3=b; 4=c]Hey Dave! Thank you again for your help with this. From my understanding, this does a fantastic job of compiling a new list from equal proportions of the low and high list. As I've been playing around with the code, could you explain exactly what "trial_order" is saving? When I run the code, I'm not getting an exact repetition of the new list so I'm assuming it might be recording whether words came from the low or high list or saving the pattern of low_word and high_word picks in setup?  What I would like to save is the exact temporal order of the new mixed list. For example, during the first round, if "dog", "castle", "orange", and "cat" were presented in that order, I would need that specific temporal order saved as well as if it was originally from the low or high list. So if "dog", "castle", "orange", and "cat" is the first presentation order in block A, then that exact presentation order will be repeated in blocks B and C as well. Thank you!! > What I would like to save is the exact temporal order of the new mixed list. For example, during the first round, if "dog", "castle", "orange", and "cat" were presented in that order, I would need that specific temporal order saved as well as if it was originally from the low or high list. So if "dog", "castle", "orange", and "cat" is the first presentation order in block A, then that exact presentation order will be repeated in blocks B and C as well. That is exactly what the code in my previous reply does and I don't know why you think otherwise. See for yourself, a data file from one such run is attached. The order of trials and words is exactly the same in all three blocks.Ahh okay then I must have messed something up and will give it a go again. Thank you again!! Dave posted Last Year ANSWER         Group: Administrators Posts: 12K, Visits: 83K +x b_randon - 1/18/2021+x Dave - 1/18/2021+x b_randon - 1/18/2021+x Dave - 1/18/2021+x b_randon - 1/18/2021+x Dave - 1/18/2021+x b_randon - 1/18/2021Hey everyone! So I'm coding a memory experiment, during the encoding task I want to present 50 words to a participant and repeat those 50 words in the same order they were originally presented 2 more times. The 50 presented words are taken from two lists equally, so 25 words from "List 1" and 25 words from "List 2" in random and mixed order. My goal of achieving this is to populate an empty list at the beginning of the experiment with the randomly selected words from each list mixed together and present that three times to the participant. I have no idea how to do this correctly and have done some searching, but I haven't found anything that has helped me do this, but I think this is completely possible. Thank you for any and all help!  Here's an example with 10 words per list, assembled into a list of 10 random selections (5 from list 1, 5 from list 2)./ trials = [1-10 = noreplace(list1, list2)]/ ontrialbegin = [    list.selection.appenditem(list.list1.nextvalue);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [    list.selection.appenditem(list.list2.nextvalue);]/ trialduration = 0/ recorddata = false/ items = (1,2,3,4,5,6,7,8,9,10)/ items = (11,12,13,14,15,16,17,18,19,20)// will hold the randomly assembled item numbers// 5 from list 1// 5 from list 2/ select = sequence// list 1: items 1 to 10// list 2: items 11 to 20/ 1 = "List 1 Item 1"/ 2 = "List 1 Item 2"/ 3 = "List 1 Item 3"/ 4 = "List 1 Item 4"/ 5 = "List 1 Item 5"/ 6 = "List 1 Item 6"/ 7 = "List 1 Item 7"/ 8 = "List 1 Item 8"/ 9 = "List 1 Item 9"/ 10 = "List 1 Item 10"/ 11 = "List 2 Item 1"/ 12 = "List 2 Item 2"/ 13 = "List 2 Item 3"/ 14 = "List 2 Item 4"/ 15 = "List 2 Item 5"/ 16 = "List 2 Item 6"/ 17 = "List 2 Item 7"/ 18 = "List 2 Item 8"/ 19 = "List 2 Item 9"/ 20 = "List 2 Item 10"/ items = allitems/ select = list.selection.nextvalue/ stimulusframes = [1=word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-10 = showword]/ preinstructions = (bpage)/ trials = [1-10 = showword]/ preinstructions = (cpage)/ trials = [1-10 = showword]^first round of 10 selected words^second round of 10 selected words^third round of 10 selected words/ blocks = [1=setup; 2=a; 3=b; 4=c]Hi Dave! Thank you for your response. I'm a little bit confused about how to plug everything in, would you be able to help with the provided two example lists I have below. My apologies for asking you to repeat yourself, I'm a bit new to working with Inquisit.  /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island" /11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"Should I change these from item elements to a list element? Again, I want to randomly select every item from both lists with no repeats and add them into a new list that I will then use to present to participants three times. Thank you for your help. /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island"/11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"/ trials = [1-50 = noreplace(high_setup, low_setup)]/ ontrialbegin = [  list.high_order.appenditem(list.highlist.nextindex);    list.trial_order.appenditem(trial.show_high);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [  list.low_order.appenditem(list.lowlist.nextindex);    list.trial_order.appenditem(trial.show_low);]/ trialduration = 0/ recorddata = false/ poolsize = 25/ poolsize = 25/ selectionmode = sequence/ select = sequence/ select = sequence/ items = high_list/ select = list.high_order.nextvalue/ items = low_list/ select = list.low_order.nextvalue/ stimulusframes = [1=high_word]/ trialduration = 1000/ stimulusframes = [1=low_word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-50 = list.trial_order]/ preinstructions = (bpage)/ trials = [1-50 = list.trial_order]/ preinstructions = (cpage)/ trials = [1-50 = list.trial_order]^first round^second round^third round/ blocks = [1=setup; 2=a; 3=b; 4=c]Hey Dave! Thank you again for your help with this. From my understanding, this does a fantastic job of compiling a new list from equal proportions of the low and high list. As I've been playing around with the code, could you explain exactly what "trial_order" is saving? When I run the code, I'm not getting an exact repetition of the new list so I'm assuming it might be recording whether words came from the low or high list or saving the pattern of low_word and high_word picks in setup?  What I would like to save is the exact temporal order of the new mixed list. For example, during the first round, if "dog", "castle", "orange", and "cat" were presented in that order, I would need that specific temporal order saved as well as if it was originally from the low or high list. So if "dog", "castle", "orange", and "cat" is the first presentation order in block A, then that exact presentation order will be repeated in blocks B and C as well. Thank you!! +x b_randon - 1/18/2021+x Dave - 1/18/2021+x b_randon - 1/18/2021+x Dave - 1/18/2021+x b_randon - 1/18/2021Hey everyone! So I'm coding a memory experiment, during the encoding task I want to present 50 words to a participant and repeat those 50 words in the same order they were originally presented 2 more times. The 50 presented words are taken from two lists equally, so 25 words from "List 1" and 25 words from "List 2" in random and mixed order. My goal of achieving this is to populate an empty list at the beginning of the experiment with the randomly selected words from each list mixed together and present that three times to the participant. I have no idea how to do this correctly and have done some searching, but I haven't found anything that has helped me do this, but I think this is completely possible. Thank you for any and all help!  Here's an example with 10 words per list, assembled into a list of 10 random selections (5 from list 1, 5 from list 2)./ trials = [1-10 = noreplace(list1, list2)]/ ontrialbegin = [    list.selection.appenditem(list.list1.nextvalue);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [    list.selection.appenditem(list.list2.nextvalue);]/ trialduration = 0/ recorddata = false/ items = (1,2,3,4,5,6,7,8,9,10)/ items = (11,12,13,14,15,16,17,18,19,20)// will hold the randomly assembled item numbers// 5 from list 1// 5 from list 2/ select = sequence// list 1: items 1 to 10// list 2: items 11 to 20/ 1 = "List 1 Item 1"/ 2 = "List 1 Item 2"/ 3 = "List 1 Item 3"/ 4 = "List 1 Item 4"/ 5 = "List 1 Item 5"/ 6 = "List 1 Item 6"/ 7 = "List 1 Item 7"/ 8 = "List 1 Item 8"/ 9 = "List 1 Item 9"/ 10 = "List 1 Item 10"/ 11 = "List 2 Item 1"/ 12 = "List 2 Item 2"/ 13 = "List 2 Item 3"/ 14 = "List 2 Item 4"/ 15 = "List 2 Item 5"/ 16 = "List 2 Item 6"/ 17 = "List 2 Item 7"/ 18 = "List 2 Item 8"/ 19 = "List 2 Item 9"/ 20 = "List 2 Item 10"/ items = allitems/ select = list.selection.nextvalue/ stimulusframes = [1=word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-10 = showword]/ preinstructions = (bpage)/ trials = [1-10 = showword]/ preinstructions = (cpage)/ trials = [1-10 = showword]^first round of 10 selected words^second round of 10 selected words^third round of 10 selected words/ blocks = [1=setup; 2=a; 3=b; 4=c]Hi Dave! Thank you for your response. I'm a little bit confused about how to plug everything in, would you be able to help with the provided two example lists I have below. My apologies for asking you to repeat yourself, I'm a bit new to working with Inquisit.  /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island" /11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"Should I change these from item elements to a list element? Again, I want to randomly select every item from both lists with no repeats and add them into a new list that I will then use to present to participants three times. Thank you for your help. /1 = "lumber"/2 = "meantime"/3 = "cherry"/4 = "powder"/5 = "beaver"/6 = "campaign"/7 = "party"/8 = "product"/9 = "canvas"/10 = "island"/11 = "dinner"/12 = "senate"/13 = "tiger"/14 = "temple"/15 = "bushel"/16 = "meadow"/17 = "liquid"/18 = "status"/19 = "contents"/20 = "metal"/21 = "autumn"/22 = "judgment"/23 = "marble"/24 = "father"/25 = "spirit"/1 = "mayor"/2 = "goodbye"/3 = "artist"/4 = "traffic"/5 = "opera"/6 = "double"/7 = "motion"/8 = "standard"/9 = "feature"/10 = "dragon"/11 = "legend"/12 = "husband"/13 = "bedroom"/14 = "oven"/15 = "career"/16 = "culture"/17 = "service"/18 = "section"/19 = "pasture"/20 = "receipt"/21 = "college"/22 = "eagle"/23 = "single"/24 = "effort"/25 = "orange"/ trials = [1-50 = noreplace(high_setup, low_setup)]/ ontrialbegin = [  list.high_order.appenditem(list.highlist.nextindex);    list.trial_order.appenditem(trial.show_high);]/ trialduration = 0/ recorddata = false/ ontrialbegin = [  list.low_order.appenditem(list.lowlist.nextindex);    list.trial_order.appenditem(trial.show_low);]/ trialduration = 0/ recorddata = false/ poolsize = 25/ poolsize = 25/ selectionmode = sequence/ select = sequence/ select = sequence/ items = high_list/ select = list.high_order.nextvalue/ items = low_list/ select = list.low_order.nextvalue/ stimulusframes = [1=high_word]/ trialduration = 1000/ stimulusframes = [1=low_word]/ trialduration = 1000/ preinstructions = (apage)/ trials = [1-50 = list.trial_order]/ preinstructions = (bpage)/ trials = [1-50 = list.trial_order]/ preinstructions = (cpage)/ trials = [1-50 = list.trial_order]^first round^second round^third round/ blocks = [1=setup; 2=a; 3=b; 4=c]Hey Dave! Thank you again for your help with this. From my understanding, this does a fantastic job of compiling a new list from equal proportions of the low and high list. As I've been playing around with the code, could you explain exactly what "trial_order" is saving? When I run the code, I'm not getting an exact repetition of the new list so I'm assuming it might be recording whether words came from the low or high list or saving the pattern of low_word and high_word picks in setup?  What I would like to save is the exact temporal order of the new mixed list. For example, during the first round, if "dog", "castle", "orange", and "cat" were presented in that order, I would need that specific temporal order saved as well as if it was originally from the low or high list. So if "dog", "castle", "orange", and "cat" is the first presentation order in block A, then that exact presentation order will be repeated in blocks B and C as well. Thank you!! > What I would like to save is the exact temporal order of the new mixed list. For example, during the first round, if "dog", "castle", "orange", and "cat" were presented in that order, I would need that specific temporal order saved as well as if it was originally from the low or high list. So if "dog", "castle", "orange", and "cat" is the first presentation order in block A, then that exact presentation order will be repeated in blocks B and C as well. That is exactly what the code in my previous reply does and I don't know why you think otherwise. See for yourself, a data file from one such run is attached. The order of trials and words is exactly the same in all three blocks.Ahh okay then I must have messed something up and will give it a go again. Thank you again!! The trial_order list, as the name suggests, saves the order of trials generated during the setup block. That same order, then, is simply reproduced in blocks A to C.The high_order and low_order lists save and reproduce the order of the high and low words generated during the setup block respectively.All three are needed to fully reproduce the trial and item sequence generated. Edited Last Year by Dave

#### Merge Selected

Merge into selected topic...

Merge into merge target...

Merge into a specific topic ID...