﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » Saving randomly selected sequence of items from list element in summarydata</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 30 Apr 2026 03:15:00 GMT</lastBuildDate><ttl>20</ttl><item><title>Saving randomly selected sequence of items from list element in summarydata</title><link>https://forums.millisecond.com/Topic30798.aspx</link><description>My experiment uses a list of 20 items from 1 to 20, from which numbers are randomly selected. How can I store the randomly seleected sequence. I simply want to know, whether the selected sequence was 3, 5, 17, ... or 1, 2, 8, 19 etc.&lt;br/&gt;&lt;br/&gt;I did not find anything regarding this in the forum, which suprises me. Can someone help?&lt;br/&gt;&lt;br/&gt;&amp;lt;list trial_sequence&amp;gt;&lt;br/&gt;/items = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)&lt;br/&gt;/selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;I unsuccessfully tried things like:&lt;br/&gt;&amp;lt;summarydata&amp;gt;&lt;br/&gt;/columns = [list.trial_sequence, list.trial_sequence.items]&lt;br/&gt;&amp;lt;/summarydata&amp;gt;&lt;br/&gt;&lt;br/&gt;Optimal solution: A column, which simply saves the order in summary data, for example: "1, 3, 16, 17,...". Or must I do a workaround, e. g. by defining 20 values and saving the corresponding position, e. g. by an additional counter?&lt;br/&gt;&lt;br/&gt;Background: My experiment runs through the same block 20 times, each time with different stimuli. I have accomplished doing this by creating lists and to call the correct element with a value that I have called current_list. Most likely I can achieve the same thing with the counter element, but I also don't know how to save the sequence there, too.&lt;br/&gt;</description><pubDate>Fri, 12 Feb 2021 13:46:05 GMT</pubDate><dc:creator>Tahwan</dc:creator></item><item><title>RE: Saving randomly selected sequence of items from list element in summarydata</title><link>https://forums.millisecond.com/Topic30805.aspx</link><description>Wow! Thank you Dave for this very useful function "concat". And of course again for your fast reply. This works well, also in my other original skript!&lt;br/&gt;</description><pubDate>Fri, 12 Feb 2021 13:46:05 GMT</pubDate><dc:creator>Tahwan</dc:creator></item><item><title>RE: Saving randomly selected sequence of items from list element in summarydata</title><link>https://forums.millisecond.com/Topic30803.aspx</link><description>&lt;blockquote data-id="30801" class="if-quote-wrapper" unselectable="on" data-guid="1613137130925" id="if_insertedNode_1613137130362" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30801" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="30801" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="30801" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Jakob - 2/12/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30801"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I created a short version of the script. The entire script is quite complicated, but this version has all the important elements. Also, I have reduced the number of trials to 3. All I want is to elegantly save the order of the sequence&amp;nbsp; &lt;br/&gt;&lt;br/&gt;&amp;lt;list trial_sequence&amp;gt;&lt;br/&gt;/items = (1, 2, 3)&lt;br/&gt;/selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;If there is no elegenat way, I would be able to do a workaround with values and an additional counter (e. g. counter that counts from 1 to 3 in sequence when each block starts again and three values (each for each list) that change to the value of the counter. That way I would have the position of each list). However, as Inquisit can calculate the variance (list.listname.variance) I was wondering if it is possible to simple save the order. Anyway, here is the skript shortened:&lt;br/&gt;&lt;br/&gt;*Defining three lists for each block&lt;br/&gt;&amp;lt;list colors_unique_trial01&amp;gt; &lt;br/&gt;/ items = (yellow, blue)&lt;br/&gt;/ selectionrate = block&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list colors_unique_trial02&amp;gt; &lt;br/&gt;/ items = (green, red)&lt;br/&gt;/ selectionrate = block&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list colors_unique_trial03&amp;gt; &lt;br/&gt;/ items = (orange, pink)&lt;br/&gt;/ selectionrate = block&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*creating list of list for left color. The value of this list is selected via the value current_list&lt;br/&gt;&amp;lt;list list_uniquecolor_left&amp;gt;&lt;br/&gt;/ items = (list.colors_unique_trial01.items.1, &lt;br/&gt;list.colors_unique_trial02.items.1, &lt;br/&gt;list.colors_unique_trial03.items.1)&lt;br/&gt;/ selectionmode = (values.current_list)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*creating list of list for right color. The value of this list is selected via the value current_list&lt;br/&gt;&amp;lt;list list_uniquecolor_right&amp;gt;&lt;br/&gt;/ items = (list.colors_unique_trial01.items.2, &lt;br/&gt;list.colors_unique_trial02.items.2, &lt;br/&gt;list.colors_unique_trial03.items.2)&lt;br/&gt;/ selectionmode = (values.current_list)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*** Defining shapes and texts&lt;br/&gt;*Defining black colored ciclre. The color is changed to the correct one later.&lt;br/&gt;&amp;lt;shape responseoption_trialdecide_color1&amp;gt;&lt;br/&gt;/shape = circle&lt;br/&gt;/color = black&lt;br/&gt;/size = (6.5%, 11.555%)&lt;br/&gt;/position = (30%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;*Defining black colored ciclre. The color is changed to the correct one later.&lt;br/&gt;&amp;lt;shape responseoption_trialdecide_color2&amp;gt;&lt;br/&gt;/shape = circle&lt;br/&gt;/color = black&lt;br/&gt;/size = (6.5%, 11.555%)&lt;br/&gt;/position = (70%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;*White background&lt;br/&gt;&amp;lt;shape white_BG&amp;gt;&lt;br/&gt;/shape = rectangle&lt;br/&gt;/color = white&lt;br/&gt;/size = (99%, 99%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text decision_color&amp;gt;&lt;br/&gt;/items = ("Which color do you decide on?")&lt;br/&gt;/ position = (50%, 20%)&lt;br/&gt;/ fontstyle = ("Calibri", 2.6%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;*Defining trial. Here, the color is being changed according to the currently called list&lt;br/&gt;&amp;lt;trial trial_decision&amp;gt;&lt;br/&gt;/stimulusframes = [1= white_BG, decision_color, responseoption_trialdecide_color1, responseoption_trialdecide_color2]&lt;br/&gt;/ontrialbegin = [shape.responseoption_trialdecide_color1.color = list.list_uniquecolor_left.item(values.current_list);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;shape.responseoption_trialdecide_color2.color = list.list_uniquecolor_right.item(values.current_list)]&lt;br/&gt;/inputdevice = mouse&lt;br/&gt;/validresponse = (responseoption_trialdecide_color1, responseoption_trialdecide_color2)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*Defining value&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/current_list =0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;*This block is reapeated 3 times, each with different color, as the value current_list is changed at the beginning of each block.&lt;br/&gt;&amp;lt;block boxtask&amp;gt;&lt;br/&gt;/trials = [1=trial_decision]&lt;br/&gt;/onblockbegin = [values.current_list = list.trial_sequence.nextvalue]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;*This runs the experiment. Here is defined, how many trials/sequences the participant should do. This is defined by the number of blocks (default: 1-20; this means 20 trials/sequences) &lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-3=boxtask]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list trial_sequence&amp;gt;&lt;br/&gt;/items = (1, 2, 3)&lt;br/&gt;/selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;summarydata&amp;gt;&lt;br/&gt;/ columns = [list.trial_sequence, list.trial_sequence.items]&lt;br/&gt;&amp;lt;/summarydata&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30801"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;*Defining three lists for each block&lt;br/&gt;&amp;lt;list colors_unique_trial01&amp;gt;&lt;br/&gt;/ items = (yellow, blue)&lt;br/&gt;/ selectionrate = block&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list colors_unique_trial02&amp;gt;&lt;br/&gt;/ items = (green, red)&lt;br/&gt;/ selectionrate = block&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list colors_unique_trial03&amp;gt;&lt;br/&gt;/ items = (orange, pink)&lt;br/&gt;/ selectionrate = block&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*creating list of list for left color. The value of this list is selected via the value current_list&lt;br/&gt;&amp;lt;list list_uniquecolor_left&amp;gt;&lt;br/&gt;/ items = (list.colors_unique_trial01.items.1,&lt;br/&gt;list.colors_unique_trial02.items.1,&lt;br/&gt;list.colors_unique_trial03.items.1)&lt;br/&gt;/ selectionmode = (values.current_list)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*creating list of list for right color. The value of this list is selected via the value current_list&lt;br/&gt;&amp;lt;list list_uniquecolor_right&amp;gt;&lt;br/&gt;/ items = (list.colors_unique_trial01.items.2,&lt;br/&gt;list.colors_unique_trial02.items.2,&lt;br/&gt;list.colors_unique_trial03.items.2)&lt;br/&gt;/ selectionmode = (values.current_list)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*** Defining shapes and texts&lt;br/&gt;*Defining black colored ciclre. The color is changed to the correct one later.&lt;br/&gt;&amp;lt;shape responseoption_trialdecide_color1&amp;gt;&lt;br/&gt;/shape = circle&lt;br/&gt;/color = black&lt;br/&gt;/size = (6.5%, 11.555%)&lt;br/&gt;/position = (30%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;*Defining black colored ciclre. The color is changed to the correct one later.&lt;br/&gt;&amp;lt;shape responseoption_trialdecide_color2&amp;gt;&lt;br/&gt;/shape = circle&lt;br/&gt;/color = black&lt;br/&gt;/size = (6.5%, 11.555%)&lt;br/&gt;/position = (70%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;*White background&lt;br/&gt;&amp;lt;shape white_BG&amp;gt;&lt;br/&gt;/shape = rectangle&lt;br/&gt;/color = white&lt;br/&gt;/size = (99%, 99%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text decision_color&amp;gt;&lt;br/&gt;/items = ("Which color do you decide on?")&lt;br/&gt;/ position = (50%, 20%)&lt;br/&gt;/ fontstyle = ("Calibri", 2.6%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;*Defining trial. Here, the color is being changed according to the currently called list&lt;br/&gt;&amp;lt;trial trial_decision&amp;gt;&lt;br/&gt;/stimulusframes = [1= white_BG, decision_color, responseoption_trialdecide_color1, responseoption_trialdecide_color2]&lt;br/&gt;/ontrialbegin = [shape.responseoption_trialdecide_color1.color = list.list_uniquecolor_left.item(values.current_list);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shape.responseoption_trialdecide_color2.color = list.list_uniquecolor_right.item(values.current_list)]&lt;br/&gt;/inputdevice = mouse&lt;br/&gt;/validresponse = (responseoption_trialdecide_color1, responseoption_trialdecide_color2)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*Defining value&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/current_list =0&lt;br/&gt;&lt;strong&gt;/ sequence = ""&lt;/strong&gt;&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;*This block is reapeated 3 times, each with different color, as the value current_list is changed at the beginning of each block.&lt;br/&gt;&amp;lt;block boxtask&amp;gt;&lt;br/&gt;/trials = [1=trial_decision]&lt;br/&gt;/onblockbegin = [values.current_list = list.trial_sequence.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt;&amp;nbsp;values.sequence = concat(concat(values.sequence,values.current_list), ",");&lt;/strong&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;*This runs the experiment. Here is defined, how many trials/sequences the participant should do. This is defined by the number of blocks (default: 1-20; this means 20 trials/sequences)&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-3=boxtask]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list trial_sequence&amp;gt;&lt;br/&gt;/items = (1, 2, 3)&lt;br/&gt;/selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;summarydata&amp;gt;&lt;br/&gt;/ columns = [&lt;strong&gt;values.sequence&lt;/strong&gt;]&lt;br/&gt;&amp;lt;/summarydata&amp;gt;</description><pubDate>Fri, 12 Feb 2021 13:39:43 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Saving randomly selected sequence of items from list element in summarydata</title><link>https://forums.millisecond.com/Topic30801.aspx</link><description>I created a short version of the script. The entire script is quite complicated, but this version has all the important elements. Also, I have reduced the number of trials to 3. All I want is to elegantly save the order of the sequence&amp;nbsp; &lt;br/&gt;&lt;br/&gt;&amp;lt;list trial_sequence&amp;gt;&lt;br/&gt;/items = (1, 2, 3)&lt;br/&gt;/selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;If there is no elegenat way, I would be able to do a workaround with values and an additional counter (e. g. counter that counts from 1 to 3 in sequence when each block starts again and three values (each for each list) that change to the value of the counter. That way I would have the position of each list). However, as Inquisit can calculate the variance (list.listname.variance) I was wondering if it is possible to simple save the order. Anyway, here is the skript shortened:&lt;br/&gt;&lt;br/&gt;*Defining three lists for each block&lt;br/&gt;&amp;lt;list colors_unique_trial01&amp;gt; &lt;br/&gt;/ items = (yellow, blue)&lt;br/&gt;/ selectionrate = block&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list colors_unique_trial02&amp;gt; &lt;br/&gt;/ items = (green, red)&lt;br/&gt;/ selectionrate = block&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list colors_unique_trial03&amp;gt; &lt;br/&gt;/ items = (orange, pink)&lt;br/&gt;/ selectionrate = block&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*creating list of list for left color. The value of this list is selected via the value current_list&lt;br/&gt;&amp;lt;list list_uniquecolor_left&amp;gt;&lt;br/&gt;/ items = (list.colors_unique_trial01.items.1, &lt;br/&gt;list.colors_unique_trial02.items.1, &lt;br/&gt;list.colors_unique_trial03.items.1)&lt;br/&gt;/ selectionmode = (values.current_list)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*creating list of list for right color. The value of this list is selected via the value current_list&lt;br/&gt;&amp;lt;list list_uniquecolor_right&amp;gt;&lt;br/&gt;/ items = (list.colors_unique_trial01.items.2, &lt;br/&gt;list.colors_unique_trial02.items.2, &lt;br/&gt;list.colors_unique_trial03.items.2)&lt;br/&gt;/ selectionmode = (values.current_list)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*** Defining shapes and texts&lt;br/&gt;*Defining black colored ciclre. The color is changed to the correct one later.&lt;br/&gt;&amp;lt;shape responseoption_trialdecide_color1&amp;gt;&lt;br/&gt;/shape = circle&lt;br/&gt;/color = black&lt;br/&gt;/size = (6.5%, 11.555%)&lt;br/&gt;/position = (30%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;*Defining black colored ciclre. The color is changed to the correct one later.&lt;br/&gt;&amp;lt;shape responseoption_trialdecide_color2&amp;gt;&lt;br/&gt;/shape = circle&lt;br/&gt;/color = black&lt;br/&gt;/size = (6.5%, 11.555%)&lt;br/&gt;/position = (70%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;*White background&lt;br/&gt;&amp;lt;shape white_BG&amp;gt;&lt;br/&gt;/shape = rectangle&lt;br/&gt;/color = white&lt;br/&gt;/size = (99%, 99%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text decision_color&amp;gt;&lt;br/&gt;/items = ("Which color do you decide on?")&lt;br/&gt;/ position = (50%, 20%)&lt;br/&gt;/ fontstyle = ("Calibri", 2.6%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;*Defining trial. Here, the color is being changed according to the currently called list&lt;br/&gt;&amp;lt;trial trial_decision&amp;gt;&lt;br/&gt;/stimulusframes = [1= white_BG, decision_color, responseoption_trialdecide_color1, responseoption_trialdecide_color2]&lt;br/&gt;/ontrialbegin = [shape.responseoption_trialdecide_color1.color = list.list_uniquecolor_left.item(values.current_list);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;shape.responseoption_trialdecide_color2.color = list.list_uniquecolor_right.item(values.current_list)]&lt;br/&gt;/inputdevice = mouse&lt;br/&gt;/validresponse = (responseoption_trialdecide_color1, responseoption_trialdecide_color2)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*Defining value&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/current_list =0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;*This block is reapeated 3 times, each with different color, as the value current_list is changed at the beginning of each block.&lt;br/&gt;&amp;lt;block boxtask&amp;gt;&lt;br/&gt;/trials = [1=trial_decision]&lt;br/&gt;/onblockbegin = [values.current_list = list.trial_sequence.nextvalue]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;*This runs the experiment. Here is defined, how many trials/sequences the participant should do. This is defined by the number of blocks (default: 1-20; this means 20 trials/sequences) &lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-3=boxtask]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list trial_sequence&amp;gt;&lt;br/&gt;/items = (1, 2, 3)&lt;br/&gt;/selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;summarydata&amp;gt;&lt;br/&gt;/ columns = [list.trial_sequence, list.trial_sequence.items]&lt;br/&gt;&amp;lt;/summarydata&amp;gt;&lt;br/&gt;</description><pubDate>Fri, 12 Feb 2021 13:27:58 GMT</pubDate><dc:creator>Tahwan</dc:creator></item><item><title>RE: Saving randomly selected sequence of items from list element in summarydata</title><link>https://forums.millisecond.com/Topic30800.aspx</link><description>&lt;blockquote data-id="30798" class="if-quote-wrapper" unselectable="on" data-guid="1613134603492" id="if_insertedNode_1613134602053" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30798" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="30798" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="30798" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Jakob - 2/12/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30798"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;My experiment uses a list of 20 items from 1 to 20, from which numbers are randomly selected. How can I store the randomly seleected sequence. I simply want to know, whether the selected sequence was 3, 5, 17, ... or 1, 2, 8, 19 etc.&lt;br/&gt;&lt;br/&gt;I did not find anything regarding this in the forum, which suprises me. Can someone help?&lt;br/&gt;&lt;br/&gt;&amp;lt;list trial_sequence&amp;gt;&lt;br/&gt;/items = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)&lt;br/&gt;/selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;I unsuccessfully tried things like:&lt;br/&gt;&amp;lt;summarydata&amp;gt;&lt;br/&gt;/columns = [list.trial_sequence, list.trial_sequence.items]&lt;br/&gt;&amp;lt;/summarydata&amp;gt;&lt;br/&gt;&lt;br/&gt;Optimal solution: A column, which simply saves the order in summary data, for example: "1, 3, 16, 17,...". Or must I do a workaround, e. g. by defining 20 values and saving the corresponding position, e. g. by an additional counter?&lt;br/&gt;&lt;br/&gt;Background: My experiment runs through the same block 20 times, each time with different stimuli. I have accomplished doing this by creating lists and to call the correct element with a value that I have called current_list. Most likely I can achieve the same thing with the counter element, but I also don't know how to save the sequence there, too.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30798"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;This question is not answerable without further information about how the rest of your code actually looks.</description><pubDate>Fri, 12 Feb 2021 12:58:13 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>