﻿<?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 6  » Pseudo-random Trial Presentation</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 17 Sep 2026 09:01:56 GMT</lastBuildDate><ttl>20</ttl><item><title>Pseudo-random Trial Presentation</title><link>https://forums.millisecond.com/Topic34176.aspx</link><description>Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I’m currently trying to create a pseudo-random order of the trials I present in a block (pasted below). Specifically,  I would like the trials to be presented where there are no more than 5 consecutive “AX_Short_No” trials or two consecutive trials of another type (“AY_Short_No”, “BX_Short_No”, “BY_Short_No”). &lt;br/&gt;&lt;br/&gt;&amp;lt;block shortnoreward_final&amp;gt;&lt;br/&gt;/ preinstructions = (intro2)&lt;br/&gt;/ trials = [1-100 = noreplace(AX_Short_No,AX_Short_No,AX_Short_No,AX_Short_No,BX_Short_No,AY_Short_No,BY_Short_No,BY_Short_No,BY_Short_No,BY_Short_No)]&lt;br/&gt;/ onblockend = [list.corrRT_baseline_short.sort(false,false);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;values.index = 3;&lt;br/&gt;values.cutoff_RT = list.corrRT_baseline_short.item(values.index);&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Any help regarding this would be much appreciated! Thank you!</description><pubDate>Mon, 11 Apr 2022 22:46:06 GMT</pubDate><dc:creator>ivy.c</dc:creator></item><item><title>RE: Pseudo-random Trial Presentation</title><link>https://forums.millisecond.com/Topic34179.aspx</link><description>&lt;blockquote data-id="34178" class="if-quote-wrapper" unselectable="on" data-guid="1649716879266" id="if_insertedNode_1649716878725" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34178" 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="34178" 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="34178" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ivy.c - 4/11/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34178"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34177" class="if-quote-wrapper" unselectable="on" data-guid="1649716879266" id="if_insertedNode_1649716587040" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34177" 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="34177" 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="34177" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/11/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34177"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34176" class="if-quote-wrapper" unselectable="on" data-guid="1649716879266" id="if_insertedNode_1649716015986" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34176" 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="34176" 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="34176" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ivy.c - 4/11/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34176"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I’m currently trying to create a pseudo-random order of the trials I present in a block (pasted below). Specifically,  I would like the trials to be presented where there are no more than 5 consecutive “AX_Short_No” trials or two consecutive trials of another type (“AY_Short_No”, “BX_Short_No”, “BY_Short_No”). &lt;br/&gt;&lt;br/&gt;&amp;lt;block shortnoreward_final&amp;gt;&lt;br/&gt;/ preinstructions = (intro2)&lt;br/&gt;/ trials = [1-100 = noreplace(AX_Short_No,AX_Short_No,AX_Short_No,AX_Short_No,BX_Short_No,AY_Short_No,BY_Short_No,BY_Short_No,BY_Short_No,BY_Short_No)]&lt;br/&gt;/ onblockend = [list.corrRT_baseline_short.sort(false,false);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;values.index = 3;&lt;br/&gt;values.cutoff_RT = list.corrRT_baseline_short.item(values.index);&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Any help regarding this would be much appreciated! Thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="34176"&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;If you can come up with an algorithm that generates sequences adhering to these constraints, I can show you how to implement it. Other than that, there are no bullt-in means to achieve what you want.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="34177"&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;Hi Dave, &lt;br/&gt;&lt;br/&gt;Thanks for the response. Could you clarify what you mean by an algorithm on my end? My coding knowledge is rather limited!&lt;br/&gt;&lt;br/&gt;Thank you! &lt;a class="if-quote-goto quote-link" href="#" data-id="34178"&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;An algorithm is a process or set of rules to be followed in calculations or other problem-solving operations: It generates a solution for a specific problem. If you can spell out a process, step-by-step, that generates a sequence "where there are no more than 5 consecutive “AX_Short_No” trials or two consecutive trials of another type (“AY_Short_No”, “BX_Short_No”, “BY_Short_No”)" then I can show you how to express that process in Inquisit syntax.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 11 Apr 2022 22:46:06 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Pseudo-random Trial Presentation</title><link>https://forums.millisecond.com/Topic34178.aspx</link><description>&lt;blockquote data-id="34177" class="if-quote-wrapper" unselectable="on" data-guid="1649716587402" contenteditable="false" id="if_insertedNode_1649716587040"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34177" 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="34177" 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="34177" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/11/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34177"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="34176" class="if-quote-wrapper" unselectable="on" data-guid="1649716587402" id="if_insertedNode_1649716015986" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34176" 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="34176" 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="34176" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ivy.c - 4/11/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34176"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I’m currently trying to create a pseudo-random order of the trials I present in a block (pasted below). Specifically,  I would like the trials to be presented where there are no more than 5 consecutive “AX_Short_No” trials or two consecutive trials of another type (“AY_Short_No”, “BX_Short_No”, “BY_Short_No”). &lt;br/&gt;&lt;br/&gt;&amp;lt;block shortnoreward_final&amp;gt;&lt;br/&gt;/ preinstructions = (intro2)&lt;br/&gt;/ trials = [1-100 = noreplace(AX_Short_No,AX_Short_No,AX_Short_No,AX_Short_No,BX_Short_No,AY_Short_No,BY_Short_No,BY_Short_No,BY_Short_No,BY_Short_No)]&lt;br/&gt;/ onblockend = [list.corrRT_baseline_short.sort(false,false);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;values.index = 3;&lt;br/&gt;values.cutoff_RT = list.corrRT_baseline_short.item(values.index);&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Any help regarding this would be much appreciated! Thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="34176"&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;If you can come up with an algorithm that generates sequences adhering to these constraints, I can show you how to implement it. Other than that, there are no bullt-in means to achieve what you want.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="34177"&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;Hi Dave, &lt;br/&gt;&lt;br/&gt;Thanks for the response. Could you clarify what you mean by an algorithm on my end? My coding knowledge is rather limited!&lt;br/&gt;&lt;br/&gt;Thank you! </description><pubDate>Mon, 11 Apr 2022 22:37:32 GMT</pubDate><dc:creator>ivy.c</dc:creator></item><item><title>RE: Pseudo-random Trial Presentation</title><link>https://forums.millisecond.com/Topic34177.aspx</link><description>&lt;blockquote data-id="34176" class="if-quote-wrapper" unselectable="on" data-guid="1649716017244" id="if_insertedNode_1649716015986" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34176" 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="34176" 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="34176" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ivy.c - 4/11/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34176"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I’m currently trying to create a pseudo-random order of the trials I present in a block (pasted below). Specifically,  I would like the trials to be presented where there are no more than 5 consecutive “AX_Short_No” trials or two consecutive trials of another type (“AY_Short_No”, “BX_Short_No”, “BY_Short_No”). &lt;br/&gt;&lt;br/&gt;&amp;lt;block shortnoreward_final&amp;gt;&lt;br/&gt;/ preinstructions = (intro2)&lt;br/&gt;/ trials = [1-100 = noreplace(AX_Short_No,AX_Short_No,AX_Short_No,AX_Short_No,BX_Short_No,AY_Short_No,BY_Short_No,BY_Short_No,BY_Short_No,BY_Short_No)]&lt;br/&gt;/ onblockend = [list.corrRT_baseline_short.sort(false,false);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;values.index = 3;&lt;br/&gt;values.cutoff_RT = list.corrRT_baseline_short.item(values.index);&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Any help regarding this would be much appreciated! Thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="34176"&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;If you can come up with an algorithm that generates sequences adhering to these constraints, I can show you how to implement it. Other than that, there are no bullt-in means to achieve what you want.&lt;br/&gt;</description><pubDate>Mon, 11 Apr 2022 22:29:16 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>