﻿<?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 5  » Random stimulus pairs from lists</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 12 Sep 2026 22:36:30 GMT</lastBuildDate><ttl>20</ttl><item><title>Random stimulus pairs from lists</title><link>https://forums.millisecond.com/Topic25332.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I want to present two statements on the screen which belong together, i.e. any time a statement from stimulus list A is shown, the respective statement from stimulus list B should appear as well. I could already solve this issue with help of the /select = ....currentindex function and defining separate stim/stimB lists (each containing 24 statements).&lt;br/&gt;I am now struggling the the randomization of the statement sequence: I want to counterbalance whether statement A is presented first and followed by the respective statement B, or whether statement B is presented first and followed by the respective statement A. I thought of using a counter, however, it seems that there are still some double trials because sometimes, the statement is drawn directly from the list, and sometimes only indirectly via the corresponding list.&lt;br/&gt;&lt;br/&gt;How can I solve this problem and "exclude" also those statements which were only drawn via the /select function?&lt;br/&gt;&lt;br/&gt;Any advice would be great!&lt;br/&gt;&lt;br/&gt;Thank you in advance and kind regards,&lt;br/&gt;L.&lt;br/&gt;&lt;br/&gt;-------&lt;br/&gt;&lt;br/&gt;&amp;lt;text high_highlow_updown&amp;gt;&lt;br/&gt;/items = high_status&lt;br/&gt;/select = mycounter&lt;br/&gt;/resetinterval = 0&lt;br/&gt;/position = (30,12.5)&lt;br/&gt;/fontstyle = ("Arial", 20pt)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text low_highlow_updown&amp;gt;&lt;br/&gt;/items = low_status&lt;br/&gt;/select = text.high_highlow_updown.currentindex&lt;br/&gt;/position = (30,65)&lt;br/&gt;/fontstyle = ("Arial", 20pt)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text low_lowhigh_updown&amp;gt;&lt;br/&gt;/items = low_status&lt;br/&gt;/select = mycounter&lt;br/&gt;/resetinterval = 0&lt;br/&gt;/position = (30,12.5)&lt;br/&gt;/fontstyle = ("Arial", 20pt)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text high_lowhigh_updown&amp;gt;&lt;br/&gt;/items = high_status&lt;br/&gt;/select = text.low_lowhigh_updown.currentindex&lt;br/&gt;/resetinterval = 0&lt;br/&gt;/position = (70,65)&lt;br/&gt;/fontstyle = ("Arial", 20pt)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;counter mycounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-24)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 24 Jul 2018 12:06:18 GMT</pubDate><dc:creator>Lafayote</dc:creator></item><item><title>RE: Random stimulus pairs from lists</title><link>https://forums.millisecond.com/Topic25335.aspx</link><description>Thank you! I adapted it for my purposes and it worked perfectly!&lt;br/&gt;</description><pubDate>Tue, 24 Jul 2018 12:06:18 GMT</pubDate><dc:creator>Lafayote</dc:creator></item><item><title>RE: Random stimulus pairs from lists</title><link>https://forums.millisecond.com/Topic25334.aspx</link><description>&lt;div data-id="25332" class="if-quote-wrapper" unselectable="on" data-guid="1532447529768"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25332" 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="25332" 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="25332" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Lafayote - Tuesday, July 24, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25332"&gt;&lt;div class="if-quote-message-margin"&gt;Hello,&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I want to present two statements on the screen which belong together, i.e. any time a statement from stimulus list A is shown, the respective statement from stimulus list B should appear as well. I could already solve this issue with help of the /select = ....currentindex function and defining separate stim/stimB lists (each containing 24 statements).&lt;br/&gt;I am now struggling the the randomization of the statement sequence: I want to counterbalance whether statement A is presented first and followed by the respective statement B, or whether statement B is presented first and followed by the respective statement A. I thought of using a counter, however, it seems that there are still some double trials because sometimes, the statement is drawn directly from the list, and sometimes only indirectly via the corresponding list.&lt;br/&gt;&lt;br/&gt;How can I solve this problem and "exclude" also those statements which were only drawn via the /select function?&lt;br/&gt;&lt;br/&gt;Any advice would be great!&lt;br/&gt;&lt;br/&gt;Thank you in advance and kind regards,&lt;br/&gt;L.&lt;br/&gt;&lt;br/&gt;-------&lt;br/&gt;&lt;br/&gt;&amp;lt;text high_highlow_updown&amp;gt;&lt;br/&gt;/items = high_status&lt;br/&gt;/select = mycounter&lt;br/&gt;/resetinterval = 0&lt;br/&gt;/position = (30,12.5)&lt;br/&gt;/fontstyle = ("Arial", 20pt)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text low_highlow_updown&amp;gt;&lt;br/&gt;/items = low_status&lt;br/&gt;/select = text.high_highlow_updown.currentindex&lt;br/&gt;/position = (30,65)&lt;br/&gt;/fontstyle = ("Arial", 20pt)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text low_lowhigh_updown&amp;gt;&lt;br/&gt;/items = low_status&lt;br/&gt;/select = mycounter&lt;br/&gt;/resetinterval = 0&lt;br/&gt;/position = (30,12.5)&lt;br/&gt;/fontstyle = ("Arial", 20pt)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text high_lowhigh_updown&amp;gt;&lt;br/&gt;/items = high_status&lt;br/&gt;/select = text.low_lowhigh_updown.currentindex&lt;br/&gt;/resetinterval = 0&lt;br/&gt;/position = (70,65)&lt;br/&gt;/fontstyle = ("Arial", 20pt)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;counter mycounter&amp;gt;&lt;br/&gt;/ select = noreplace(1-24)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="25332"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You should not need two lists or counters, one suffices. Consider this example, with two trials, one of which presents statement A first, the other presents statement B first.&lt;br/&gt;&lt;br/&gt;&amp;lt;text a&amp;gt;&lt;br/&gt;/ items = aitems&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text b&amp;gt;&lt;br/&gt;/ items = bitems&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item aitems&amp;gt;&lt;br/&gt;/ 1 = "A 01"&lt;br/&gt;/ 2 = "A 02"&lt;br/&gt;/ 3 = "A 03"&lt;br/&gt;/ 4 = "A 04"&lt;br/&gt;/ 5 = "A 05"&lt;br/&gt;/ 6 = "A 06"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item bitems&amp;gt;&lt;br/&gt;/ 1 = "B 01"&lt;br/&gt;/ 2 = "B 02"&lt;br/&gt;/ 3 = "B 03"&lt;br/&gt;/ 4 = "B 04"&lt;br/&gt;/ 5 = "B 05"&lt;br/&gt;/ 6 = "B 06"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list allitemnumbers&amp;gt;&lt;br/&gt;/ poolsize = 6&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial ab&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.itemnumber = list.allitemnumbers.nextindex;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=a; 2000=b]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial ba&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.itemnumber = list.allitemnumbers.nextindex;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0=b; 2000=a]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-6 = noreplace(ab, ba)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ itemnumber = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 24 Jul 2018 08:58:18 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>