Hi Dave,
thanks for the reply
I generated 100 preestablished sequences by using the sequence generator in another file.
then, I made an item list of them (see below)
The question is how I can randomly select one of these sequences and put it in the values.sequence_1, and in values.sequence_2, and values.sequence_3, as such that the AAT_start trials (three different ones) will use three different sequences.
**********************************************************************
trial that selects the next targetstimulus category (1-8)
**********************************************************************
Debug:
<text nextstimulus>
/ items = ("<%values.nextstimulus%>")
/ position = (50%, 60%)
/ fontstyle = ("Arial", 2.33%, false, false, false, false, 5, 0)
</text>
<item trialsequence_items>
/1 = "83264736532318711667158418474632174528578434858465732443712576586851627116322352"
/2 = "23638254388748837618455465213323827424541127516185546638316776616271782471274355"
/3 = "12764528384127818627456347558215847584271614323678437563262323785347161584636511"
.....
/99 = "53267386136872323472117875442548615487564853654161883765425772451823263763814211"
/100 = "67318287352528613687362152344878418457253542341658217541477367618471866325654312"
</item>
<trial AAT_start1>
/ ontrialbegin = [values.nextstimulus = substring(values.sequence_1, values.index, 1);
values.index += 1]
/ ontrialbegin = [values.repeat = 0]
/ timeout = 0
/ branch = [if (values.nextstimulus == 1) trial.AAT_1]
/ branch = [if (values.nextstimulus == 2) trial.AAT_2]
/ branch = [if (values.nextstimulus == 3) trial.AAT_3]
/ branch = [if (values.nextstimulus == 4) trial.AAT_4]
/ branch = [if (values.nextstimulus == 5) trial.AAT_5]
/ branch = [if (values.nextstimulus == 6) trial.AAT_6]
/ branch = [if (values.nextstimulus == 7) trial.AAT_7]
/ branch = [if (values.nextstimulus == 8) trial.AAT_8]
/ recorddata = false
</trial>
<trial AAT_start2>
/ ontrialbegin = [values.nextstimulus = substring(values.sequence_2, values.index, 1);
values.index += 1]
/ ontrialbegin = [values.repeat = 0]
/ timeout = 0
/ branch = [if (values.nextstimulus == 1) trial.AAT_1]
/ branch = [if (values.nextstimulus == 2) trial.AAT_2]
/ branch = [if (values.nextstimulus == 3) trial.AAT_3]
/ branch = [if (values.nextstimulus == 4) trial.AAT_4]
/ branch = [if (values.nextstimulus == 5) trial.AAT_5]
/ branch = [if (values.nextstimulus == 6) trial.AAT_6]
/ branch = [if (values.nextstimulus == 7) trial.AAT_7]
/ branch = [if (values.nextstimulus == 8) trial.AAT_8]
/ recorddata = false
</trial>
<trial AAT_start3>
/ ontrialbegin = [values.nextstimulus = substring(values.sequence_3, values.index, 1);
values.index += 1]
/ ontrialbegin = [values.repeat = 0]
/ timeout = 0
/ branch = [if (values.nextstimulus == 1) trial.AAT_1]
/ branch = [if (values.nextstimulus == 2) trial.AAT_2]
/ branch = [if (values.nextstimulus == 3) trial.AAT_3]
/ branch = [if (values.nextstimulus == 4) trial.AAT_4]
/ branch = [if (values.nextstimulus == 5) trial.AAT_5]
/ branch = [if (values.nextstimulus == 6) trial.AAT_6]
/ branch = [if (values.nextstimulus == 7) trial.AAT_7]
/ branch = [if (values.nextstimulus == 8) trial.AAT_8]
/ recorddata = false
</trial>