## How do the make two conditions with a different certain sequence...

 Author Message AHJI New Member Group: Forum Members Posts: 2, Visits: 28 Hi guys, I do not speak English well so I can explain it strangely but I will do my best!there is two conditions, one is 1, 2, 3, 4 the other is 5, 6, 7, 8I want to stimulate each condition randomly in one trial while maintaining the stimulus sequence of each condition.ex) 1, 5, 2, 3, 6, 7, 8, 4 or 5, 1, 6, 2, 7, 8, 3, 4   .......etcbut not this ; 1, 2, 4, 3, 5, 6, 7, 8 or  5, 7, 8, 6, 1, 2, 3, 4 Because the order of the stimulus belonging to each condition is wrong.I attempted to find a way or function to randomly present stimuli of conditions that maintained a certain order in a trial, but failed.I'm not sure if I explained well, but I would be very happy if I could get help. Thanks for reading! Dave Supreme Being Group: Administrators Posts: 9.5K, Visits: 43K +xAHJI - Sunday, May 12, 2019Hi guys, I do not speak English well so I can explain it strangely but I will do my best!there is two conditions, one is 1, 2, 3, 4 the other is 5, 6, 7, 8I want to stimulate each condition randomly in one trial while maintaining the stimulus sequence of each condition.ex) 1, 5, 2, 3, 6, 7, 8, 4 or 5, 1, 6, 2, 7, 8, 3, 4   .......etcbut not this ; 1, 2, 4, 3, 5, 6, 7, 8 or  5, 7, 8, 6, 1, 2, 3, 4 Because the order of the stimulus belonging to each condition is wrong.I attempted to find a way or function to randomly present stimuli of conditions that maintained a certain order in a trial, but failed.I'm not sure if I explained well, but I would be very happy if I could get help. Thanks for reading!It's not clear to me what exactly you're trying to do, but generally speaking you'll want to sample your stimuli from elements set to sequential selection. I.e.:/ items = (text.one, text.two, text.three, text.four)/ selectionmode = sequence/ selectionrate = always/ items = ("1")/ items = ("2")/ items = ("3")/ items = ("4")/ items = (text.five, text.six, text.seven, text.eight)/ selectionmode = sequence/ selectionrate = always/ items = ("5")/ items = ("6")/ items = ("7")/ items = ("8")/ items = (list.condition1stimuli.nextvalue, list.condition2stimuli.nextvalue)/ select = values.condition/ selectionrate = always/ items = (1,1,1,1,2,2,2,2)/ selectionrate = always/ selectionmode = random/ replace = false/ condition = 1/ ontrialbegin = [values.condition = list.conditions.nextvalue;trial.example.insertstimulustime(list.masterlist.nextvalue, 0);values.condition = list.conditions.nextvalue;trial.example.insertstimulustime(list.masterlist.nextvalue, 1000);values.condition = list.conditions.nextvalue;trial.example.insertstimulustime(list.masterlist.nextvalue, 2000);values.condition = list.conditions.nextvalue;trial.example.insertstimulustime(list.masterlist.nextvalue, 3000);values.condition = list.conditions.nextvalue;trial.example.insertstimulustime(list.masterlist.nextvalue, 4000);values.condition = list.conditions.nextvalue;trial.example.insertstimulustime(list.masterlist.nextvalue, 5000);values.condition = list.conditions.nextvalue;trial.example.insertstimulustime(list.masterlist.nextvalue, 6000);values.condition = list.conditions.nextvalue;trial.example.insertstimulustime(list.masterlist.nextvalue, 7000);]/ validresponse = (57)/ trials = [1-4 = example] AHJI New Member Group: Forum Members Posts: 2, Visits: 28 Thank you very much Dave!!! It is very helpful charlie909 New Member Group: Forum Members Posts: 2, Visits: 4 Thanks for the information.