﻿<?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  » Randomizing presentation of groups of blocks</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 28 Sep 2026 11:43:58 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Randomizing presentation of groups of blocks</title><link>https://forums.millisecond.com/Topic30796.aspx</link><description>&lt;blockquote data-id="30795" class="if-quote-wrapper" unselectable="on" data-guid="1613094625752" id="if_insertedNode_1613094624490" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30795" 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="30795" 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="30795" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mindwanderingjeremy - 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-30795"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Is it the same for the expt /blocks syntax? If I only want it to run through noreplace(block1, block2, block3, etc.) once I list it as 1 = noreplace(block1, block2, block3, etc.)?&lt;a class="if-quote-goto quote-link" href="#" data-id="30795"&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 applies to sequence() only. A sequence is treated as a single unit.&lt;br/&gt;&lt;br/&gt;When sampling randomly from some pool, it's 1-3 = noreplace(a,b,c) if you want each element in the pool run once, in random order.&lt;br/&gt;&lt;br/&gt; 2 -9 = noreplace(0backNT, 0backNT, 0backNT, 0backtarget);&lt;br/&gt;&lt;br/&gt;will give you 6 0backNT trials and 2 0backtarget trials, in random order.&lt;br/&gt;</description><pubDate>Fri, 12 Feb 2021 01:54:45 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>Randomizing presentation of groups of blocks</title><link>https://forums.millisecond.com/Topic30785.aspx</link><description>Hi again!&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am having trouble with my n-back task code again. It is nearly complete but I am attempting to randomise the presentation of my survey pages which is proving difficult. &lt;br/&gt;The way I have attempted to do this is I have created a &amp;lt;survey thoughtprobes&amp;gt; function which presents each of the survey pages in a random order. However, I need this survey page to be shown after every one of my experimental blocks. To do this I need to be able to randomly select groups of block1 + survey.thoughtprobes, block 2 + survey.thoughprobes, block3 + survey.thoughtprobes, etc in my &amp;lt;experiment&amp;gt; function. Is there an easy way to do this? &lt;br/&gt;&lt;br/&gt;So far I have attempted to use a method I found on a 10 year old thread in this forum which uses lists to achieve this like so:&lt;br/&gt;&amp;lt;list blockselector&amp;gt;&lt;br/&gt;/items = (list.q0b1, list.q0b2, list.q0b3, list.m0b1, list.m0b2, list.m0b3, list.l0b1, list.l0b2, list.l0b3,&lt;br/&gt;list.q1b1, list.q1b2, list.q1b3, list.m1b1, list.m1b2, list.m1b3, list.l1b1, list.l1b2, list.l1b3,)&lt;br/&gt;/selectionmode = random&lt;br/&gt;/replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&amp;lt;list q0b1&amp;gt;&lt;br/&gt;/items = (block.quick0back1, survey.thoughtprobe)&lt;br/&gt;/selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;*** multiple lists for each block type ***&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (intro)&lt;br/&gt;/ postinstructions = (end)&lt;br/&gt;/ blocks = [1-2 = list.blockselector; 3-4 = list.blockselector; 5-6 = list.blockselector; 7-8 = list.blockselector; 9-10 = list.blockselector; &lt;br/&gt;11-12 = list.blockselector; 13-14 = list.blockselector; 15-16 = list.blockselector; 17-18 = list.blockselector; 19-20 = list.blockselector; &lt;br/&gt;21-22 = list.blockselector; 23-24 = list.blockselector; 25-26 = list.blockselector; 27-28 = list.blockselector; 29-30 = list.blockselector; &lt;br/&gt;31-32 = list.blockselector; 33-34 = list.blockselector; 35-36 = list.blockselector]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;However this does not work. Any ideas on how I can randomly present blocks with the survey at the end? &lt;br/&gt;I have included my code and stimuli below if you would like to look at the whole thing. &lt;br/&gt;Thank you!&lt;br/&gt;</description><pubDate>Fri, 12 Feb 2021 01:52:27 GMT</pubDate><dc:creator>mindwanderingjeremy</dc:creator></item><item><title>RE: Randomizing presentation of groups of blocks</title><link>https://forums.millisecond.com/Topic30795.aspx</link><description>Is it the same for the expt /blocks syntax? If I only want it to run through noreplace(block1, block2, block3, etc.) once I list it as 1 = noreplace(block1, block2, block3, etc.)?</description><pubDate>Fri, 12 Feb 2021 01:44:50 GMT</pubDate><dc:creator>mindwanderingjeremy</dc:creator></item><item><title>RE: Randomizing presentation of groups of blocks</title><link>https://forums.millisecond.com/Topic30794.aspx</link><description>&lt;blockquote data-id="30793" class="if-quote-wrapper" unselectable="on" data-guid="1613094057694" contenteditable="false" id="if_insertedNode_1613094056072"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30793" 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="30793" 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="30793" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 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-30793"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30792" class="if-quote-wrapper" unselectable="on" data-guid="1613094057694" id="if_insertedNode_1613091512804" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30792" 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="30792" 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="30792" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mindwanderingjeremy - 2/11/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-30792"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30791" class="if-quote-wrapper" unselectable="on" data-guid="1613094057694" id="if_insertedNode_1613087479333" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30791" 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="30791" 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="30791" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mindwanderingjeremy - 2/11/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-30791"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30786" class="if-quote-wrapper" unselectable="on" data-guid="1613094057694" id="if_insertedNode_1613087111158" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30786" 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="30786" 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="30786" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 2/11/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-30786"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30785" class="if-quote-wrapper" unselectable="on" data-guid="1613094057694" id="if_insertedNode_1613044449319" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30785" 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="30785" 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="30785" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mindwanderingjeremy - 2/11/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-30785"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi again!&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am having trouble with my n-back task code again. It is nearly complete but I am attempting to randomise the presentation of my survey pages which is proving difficult. &lt;br/&gt;The way I have attempted to do this is I have created a &amp;lt;survey thoughtprobes&amp;gt; function which presents each of the survey pages in a random order. However, I need this survey page to be shown after every one of my experimental blocks. To do this I need to be able to randomly select groups of block1 + survey.thoughtprobes, block 2 + survey.thoughprobes, block3 + survey.thoughtprobes, etc in my &amp;lt;experiment&amp;gt; function. Is there an easy way to do this? &lt;br/&gt;&lt;br/&gt;So far I have attempted to use a method I found on a 10 year old thread in this forum which uses lists to achieve this like so:&lt;br/&gt;&amp;lt;list blockselector&amp;gt;&lt;br/&gt;/items = (list.q0b1, list.q0b2, list.q0b3, list.m0b1, list.m0b2, list.m0b3, list.l0b1, list.l0b2, list.l0b3,&lt;br/&gt;list.q1b1, list.q1b2, list.q1b3, list.m1b1, list.m1b2, list.m1b3, list.l1b1, list.l1b2, list.l1b3,)&lt;br/&gt;/selectionmode = random&lt;br/&gt;/replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&amp;lt;list q0b1&amp;gt;&lt;br/&gt;/items = (block.quick0back1, survey.thoughtprobe)&lt;br/&gt;/selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;*** multiple lists for each block type ***&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (intro)&lt;br/&gt;/ postinstructions = (end)&lt;br/&gt;/ blocks = [1-2 = list.blockselector; 3-4 = list.blockselector; 5-6 = list.blockselector; 7-8 = list.blockselector; 9-10 = list.blockselector; &lt;br/&gt;11-12 = list.blockselector; 13-14 = list.blockselector; 15-16 = list.blockselector; 17-18 = list.blockselector; 19-20 = list.blockselector; &lt;br/&gt;21-22 = list.blockselector; 23-24 = list.blockselector; 25-26 = list.blockselector; 27-28 = list.blockselector; 29-30 = list.blockselector; &lt;br/&gt;31-32 = list.blockselector; 33-34 = list.blockselector; 35-36 = list.blockselector]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;However this does not work. Any ideas on how I can randomly present blocks with the survey at the end? &lt;br/&gt;I have included my code and stimuli below if you would like to look at the whole thing. &lt;br/&gt;Thank you!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30785"&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;Why don't you just /branch to the survey block from each of the nback blocks? That is:&lt;br/&gt;&lt;br/&gt;Sample your nback blocks randomly at the &amp;lt;expt&amp;gt; level per&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ blocks = [1-18 = noreplace(quick0back1, ...)]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;and in each nback block have&lt;br/&gt;&lt;br/&gt;&amp;lt;block quick0back1&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [survey.thoughtprobe]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30786"&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;I tried doing this but it doesnt work for some reason. It just goes past skips the thought probes and goes to the next block.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="30791"&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;Here is the scripted coded like you suggest. It doesnt branch to the survey for some reason. &lt;a class="if-quote-goto quote-link" href="#" data-id="30792"&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;It branches to the survey just fine. You're probably just confused, expecting the branch to occur whenever you see your "stop" trial, but that's because your blocks' /trials syntax is faulty (in all blocks).&lt;br/&gt;&lt;br/&gt;/ trials = [1 = 0backready; 2 -9 = noreplace(0backNT, 0backNT, 0backNT, 0backtarget); &lt;strong&gt;10-14 = 0backtarget, 0backNT, 0backNT, 0backNT, stop&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;I'm not sure what you intend the bolded part above to do, but I can tell you what it does do: It runs the &lt;strong&gt;sequence&lt;/strong&gt; of trials&lt;br/&gt;&lt;br/&gt; 0backtarget -&amp;gt; 0backNT -&amp;gt; 0backNT -&amp;gt; 0backNT -&amp;gt; stop&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;five &lt;/strong&gt;times.&lt;br/&gt;&lt;br/&gt;If you want that sequence of five trials to run only once, the proper specification is&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;/ trials = [1 = 0backready; 2 -9 = noreplace(0backNT, 0backNT, 0backNT, 0backtarget); &lt;strong&gt;10 = sequence(0backtarget, 0backNT, 0backNT, 0backNT, stop)&lt;/strong&gt;]&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30793"&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;Ahh right I understand! yes thank you I did want it to only run once so I appreciate this clarification. I will change this syntax thank you</description><pubDate>Fri, 12 Feb 2021 01:41:34 GMT</pubDate><dc:creator>mindwanderingjeremy</dc:creator></item><item><title>RE: Randomizing presentation of groups of blocks</title><link>https://forums.millisecond.com/Topic30793.aspx</link><description>&lt;blockquote data-id="30792" class="if-quote-wrapper" unselectable="on" data-guid="1613091513703" id="if_insertedNode_1613091512804" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30792" 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="30792" 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="30792" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mindwanderingjeremy - 2/11/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-30792"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30791" class="if-quote-wrapper" unselectable="on" data-guid="1613091513703" id="if_insertedNode_1613087479333" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30791" 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="30791" 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="30791" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mindwanderingjeremy - 2/11/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-30791"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30786" class="if-quote-wrapper" unselectable="on" data-guid="1613091513703" id="if_insertedNode_1613087111158" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30786" 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="30786" 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="30786" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 2/11/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-30786"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30785" class="if-quote-wrapper" unselectable="on" data-guid="1613091513703" id="if_insertedNode_1613044449319" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30785" 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="30785" 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="30785" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mindwanderingjeremy - 2/11/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-30785"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi again!&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am having trouble with my n-back task code again. It is nearly complete but I am attempting to randomise the presentation of my survey pages which is proving difficult. &lt;br/&gt;The way I have attempted to do this is I have created a &amp;lt;survey thoughtprobes&amp;gt; function which presents each of the survey pages in a random order. However, I need this survey page to be shown after every one of my experimental blocks. To do this I need to be able to randomly select groups of block1 + survey.thoughtprobes, block 2 + survey.thoughprobes, block3 + survey.thoughtprobes, etc in my &amp;lt;experiment&amp;gt; function. Is there an easy way to do this? &lt;br/&gt;&lt;br/&gt;So far I have attempted to use a method I found on a 10 year old thread in this forum which uses lists to achieve this like so:&lt;br/&gt;&amp;lt;list blockselector&amp;gt;&lt;br/&gt;/items = (list.q0b1, list.q0b2, list.q0b3, list.m0b1, list.m0b2, list.m0b3, list.l0b1, list.l0b2, list.l0b3,&lt;br/&gt;list.q1b1, list.q1b2, list.q1b3, list.m1b1, list.m1b2, list.m1b3, list.l1b1, list.l1b2, list.l1b3,)&lt;br/&gt;/selectionmode = random&lt;br/&gt;/replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&amp;lt;list q0b1&amp;gt;&lt;br/&gt;/items = (block.quick0back1, survey.thoughtprobe)&lt;br/&gt;/selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;*** multiple lists for each block type ***&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (intro)&lt;br/&gt;/ postinstructions = (end)&lt;br/&gt;/ blocks = [1-2 = list.blockselector; 3-4 = list.blockselector; 5-6 = list.blockselector; 7-8 = list.blockselector; 9-10 = list.blockselector; &lt;br/&gt;11-12 = list.blockselector; 13-14 = list.blockselector; 15-16 = list.blockselector; 17-18 = list.blockselector; 19-20 = list.blockselector; &lt;br/&gt;21-22 = list.blockselector; 23-24 = list.blockselector; 25-26 = list.blockselector; 27-28 = list.blockselector; 29-30 = list.blockselector; &lt;br/&gt;31-32 = list.blockselector; 33-34 = list.blockselector; 35-36 = list.blockselector]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;However this does not work. Any ideas on how I can randomly present blocks with the survey at the end? &lt;br/&gt;I have included my code and stimuli below if you would like to look at the whole thing. &lt;br/&gt;Thank you!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30785"&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;Why don't you just /branch to the survey block from each of the nback blocks? That is:&lt;br/&gt;&lt;br/&gt;Sample your nback blocks randomly at the &amp;lt;expt&amp;gt; level per&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ blocks = [1-18 = noreplace(quick0back1, ...)]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;and in each nback block have&lt;br/&gt;&lt;br/&gt;&amp;lt;block quick0back1&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [survey.thoughtprobe]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30786"&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;I tried doing this but it doesnt work for some reason. It just goes past skips the thought probes and goes to the next block.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="30791"&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;Here is the scripted coded like you suggest. It doesnt branch to the survey for some reason. &lt;a class="if-quote-goto quote-link" href="#" data-id="30792"&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;It branches to the survey just fine. You're probably just confused, expecting the branch to occur whenever you see your "stop" trial, but that's because your blocks' /trials syntax is faulty (in all blocks).&lt;br/&gt;&lt;br/&gt;/ trials = [1 = 0backready; 2 -9 = noreplace(0backNT, 0backNT, 0backNT, 0backtarget); &lt;strong&gt;10-14 = 0backtarget, 0backNT, 0backNT, 0backNT, stop&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;I'm not sure what you intend the bolded part above to do, but I can tell you what it does do: It runs the &lt;strong&gt;sequence&lt;/strong&gt; of trials&lt;br/&gt;&lt;br/&gt; 0backtarget -&amp;gt; 0backNT -&amp;gt; 0backNT -&amp;gt; 0backNT -&amp;gt; stop&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;five &lt;/strong&gt;times.&lt;br/&gt;&lt;br/&gt;If you want that sequence of five trials to run only once, the proper specification is&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;/ trials = [1 = 0backready; 2 -9 = noreplace(0backNT, 0backNT, 0backNT, 0backtarget); &lt;strong&gt;10 = sequence(0backtarget, 0backNT, 0backNT, 0backNT, stop)&lt;/strong&gt;]&lt;br/&gt;</description><pubDate>Fri, 12 Feb 2021 01:03:18 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Randomizing presentation of groups of blocks</title><link>https://forums.millisecond.com/Topic30792.aspx</link><description>&lt;blockquote data-id="30791" class="if-quote-wrapper" unselectable="on" data-guid="1613087480320" contenteditable="false" id="if_insertedNode_1613087479333"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30791" 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="30791" 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="30791" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mindwanderingjeremy - 2/11/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-30791"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30786" class="if-quote-wrapper" unselectable="on" data-guid="1613087480320" contenteditable="false" id="if_insertedNode_1613087111158"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30786" 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="30786" 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="30786" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 2/11/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-30786"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30785" class="if-quote-wrapper" unselectable="on" data-guid="1613087480320" id="if_insertedNode_1613044449319" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30785" 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="30785" 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="30785" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mindwanderingjeremy - 2/11/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-30785"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi again!&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am having trouble with my n-back task code again. It is nearly complete but I am attempting to randomise the presentation of my survey pages which is proving difficult. &lt;br/&gt;The way I have attempted to do this is I have created a &amp;lt;survey thoughtprobes&amp;gt; function which presents each of the survey pages in a random order. However, I need this survey page to be shown after every one of my experimental blocks. To do this I need to be able to randomly select groups of block1 + survey.thoughtprobes, block 2 + survey.thoughprobes, block3 + survey.thoughtprobes, etc in my &amp;lt;experiment&amp;gt; function. Is there an easy way to do this? &lt;br/&gt;&lt;br/&gt;So far I have attempted to use a method I found on a 10 year old thread in this forum which uses lists to achieve this like so:&lt;br/&gt;&amp;lt;list blockselector&amp;gt;&lt;br/&gt;/items = (list.q0b1, list.q0b2, list.q0b3, list.m0b1, list.m0b2, list.m0b3, list.l0b1, list.l0b2, list.l0b3,&lt;br/&gt;list.q1b1, list.q1b2, list.q1b3, list.m1b1, list.m1b2, list.m1b3, list.l1b1, list.l1b2, list.l1b3,)&lt;br/&gt;/selectionmode = random&lt;br/&gt;/replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&amp;lt;list q0b1&amp;gt;&lt;br/&gt;/items = (block.quick0back1, survey.thoughtprobe)&lt;br/&gt;/selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;*** multiple lists for each block type ***&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (intro)&lt;br/&gt;/ postinstructions = (end)&lt;br/&gt;/ blocks = [1-2 = list.blockselector; 3-4 = list.blockselector; 5-6 = list.blockselector; 7-8 = list.blockselector; 9-10 = list.blockselector; &lt;br/&gt;11-12 = list.blockselector; 13-14 = list.blockselector; 15-16 = list.blockselector; 17-18 = list.blockselector; 19-20 = list.blockselector; &lt;br/&gt;21-22 = list.blockselector; 23-24 = list.blockselector; 25-26 = list.blockselector; 27-28 = list.blockselector; 29-30 = list.blockselector; &lt;br/&gt;31-32 = list.blockselector; 33-34 = list.blockselector; 35-36 = list.blockselector]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;However this does not work. Any ideas on how I can randomly present blocks with the survey at the end? &lt;br/&gt;I have included my code and stimuli below if you would like to look at the whole thing. &lt;br/&gt;Thank you!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30785"&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;Why don't you just /branch to the survey block from each of the nback blocks? That is:&lt;br/&gt;&lt;br/&gt;Sample your nback blocks randomly at the &amp;lt;expt&amp;gt; level per&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ blocks = [1-18 = noreplace(quick0back1, ...)]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;and in each nback block have&lt;br/&gt;&lt;br/&gt;&amp;lt;block quick0back1&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [survey.thoughtprobe]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30786"&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;I tried doing this but it doesnt work for some reason. It just goes past skips the thought probes and goes to the next block.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="30791"&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;Here is the scripted coded like you suggest. It doesnt branch to the survey for some reason. </description><pubDate>Thu, 11 Feb 2021 23:51:46 GMT</pubDate><dc:creator>mindwanderingjeremy</dc:creator></item><item><title>RE: Randomizing presentation of groups of blocks</title><link>https://forums.millisecond.com/Topic30791.aspx</link><description>&lt;blockquote data-id="30786" class="if-quote-wrapper" unselectable="on" data-guid="1613087112158" contenteditable="false" id="if_insertedNode_1613087111158"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30786" 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="30786" 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="30786" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 2/11/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-30786"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30785" class="if-quote-wrapper" unselectable="on" data-guid="1613087112158" id="if_insertedNode_1613044449319" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30785" 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="30785" 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="30785" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mindwanderingjeremy - 2/11/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-30785"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi again!&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am having trouble with my n-back task code again. It is nearly complete but I am attempting to randomise the presentation of my survey pages which is proving difficult. &lt;br/&gt;The way I have attempted to do this is I have created a &amp;lt;survey thoughtprobes&amp;gt; function which presents each of the survey pages in a random order. However, I need this survey page to be shown after every one of my experimental blocks. To do this I need to be able to randomly select groups of block1 + survey.thoughtprobes, block 2 + survey.thoughprobes, block3 + survey.thoughtprobes, etc in my &amp;lt;experiment&amp;gt; function. Is there an easy way to do this? &lt;br/&gt;&lt;br/&gt;So far I have attempted to use a method I found on a 10 year old thread in this forum which uses lists to achieve this like so:&lt;br/&gt;&amp;lt;list blockselector&amp;gt;&lt;br/&gt;/items = (list.q0b1, list.q0b2, list.q0b3, list.m0b1, list.m0b2, list.m0b3, list.l0b1, list.l0b2, list.l0b3,&lt;br/&gt;list.q1b1, list.q1b2, list.q1b3, list.m1b1, list.m1b2, list.m1b3, list.l1b1, list.l1b2, list.l1b3,)&lt;br/&gt;/selectionmode = random&lt;br/&gt;/replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&amp;lt;list q0b1&amp;gt;&lt;br/&gt;/items = (block.quick0back1, survey.thoughtprobe)&lt;br/&gt;/selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;*** multiple lists for each block type ***&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (intro)&lt;br/&gt;/ postinstructions = (end)&lt;br/&gt;/ blocks = [1-2 = list.blockselector; 3-4 = list.blockselector; 5-6 = list.blockselector; 7-8 = list.blockselector; 9-10 = list.blockselector; &lt;br/&gt;11-12 = list.blockselector; 13-14 = list.blockselector; 15-16 = list.blockselector; 17-18 = list.blockselector; 19-20 = list.blockselector; &lt;br/&gt;21-22 = list.blockselector; 23-24 = list.blockselector; 25-26 = list.blockselector; 27-28 = list.blockselector; 29-30 = list.blockselector; &lt;br/&gt;31-32 = list.blockselector; 33-34 = list.blockselector; 35-36 = list.blockselector]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;However this does not work. Any ideas on how I can randomly present blocks with the survey at the end? &lt;br/&gt;I have included my code and stimuli below if you would like to look at the whole thing. &lt;br/&gt;Thank you!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30785"&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;Why don't you just /branch to the survey block from each of the nback blocks? That is:&lt;br/&gt;&lt;br/&gt;Sample your nback blocks randomly at the &amp;lt;expt&amp;gt; level per&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ blocks = [1-18 = noreplace(quick0back1, ...)]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;and in each nback block have&lt;br/&gt;&lt;br/&gt;&amp;lt;block quick0back1&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [survey.thoughtprobe]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30786"&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;I tried doing this but it doesnt work for some reason. It just goes past skips the thought probes and goes to the next block.&amp;nbsp;</description><pubDate>Thu, 11 Feb 2021 23:48:37 GMT</pubDate><dc:creator>mindwanderingjeremy</dc:creator></item><item><title>RE: Randomizing presentation of groups of blocks</title><link>https://forums.millisecond.com/Topic30786.aspx</link><description>&lt;blockquote data-id="30785" class="if-quote-wrapper" unselectable="on" data-guid="1613044450017" id="if_insertedNode_1613044449319" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30785" 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="30785" 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="30785" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mindwanderingjeremy - 2/11/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-30785"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi again!&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am having trouble with my n-back task code again. It is nearly complete but I am attempting to randomise the presentation of my survey pages which is proving difficult. &lt;br/&gt;The way I have attempted to do this is I have created a &amp;lt;survey thoughtprobes&amp;gt; function which presents each of the survey pages in a random order. However, I need this survey page to be shown after every one of my experimental blocks. To do this I need to be able to randomly select groups of block1 + survey.thoughtprobes, block 2 + survey.thoughprobes, block3 + survey.thoughtprobes, etc in my &amp;lt;experiment&amp;gt; function. Is there an easy way to do this? &lt;br/&gt;&lt;br/&gt;So far I have attempted to use a method I found on a 10 year old thread in this forum which uses lists to achieve this like so:&lt;br/&gt;&amp;lt;list blockselector&amp;gt;&lt;br/&gt;/items = (list.q0b1, list.q0b2, list.q0b3, list.m0b1, list.m0b2, list.m0b3, list.l0b1, list.l0b2, list.l0b3,&lt;br/&gt;list.q1b1, list.q1b2, list.q1b3, list.m1b1, list.m1b2, list.m1b3, list.l1b1, list.l1b2, list.l1b3,)&lt;br/&gt;/selectionmode = random&lt;br/&gt;/replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&amp;lt;list q0b1&amp;gt;&lt;br/&gt;/items = (block.quick0back1, survey.thoughtprobe)&lt;br/&gt;/selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;*** multiple lists for each block type ***&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (intro)&lt;br/&gt;/ postinstructions = (end)&lt;br/&gt;/ blocks = [1-2 = list.blockselector; 3-4 = list.blockselector; 5-6 = list.blockselector; 7-8 = list.blockselector; 9-10 = list.blockselector; &lt;br/&gt;11-12 = list.blockselector; 13-14 = list.blockselector; 15-16 = list.blockselector; 17-18 = list.blockselector; 19-20 = list.blockselector; &lt;br/&gt;21-22 = list.blockselector; 23-24 = list.blockselector; 25-26 = list.blockselector; 27-28 = list.blockselector; 29-30 = list.blockselector; &lt;br/&gt;31-32 = list.blockselector; 33-34 = list.blockselector; 35-36 = list.blockselector]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;However this does not work. Any ideas on how I can randomly present blocks with the survey at the end? &lt;br/&gt;I have included my code and stimuli below if you would like to look at the whole thing. &lt;br/&gt;Thank you!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30785"&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;Why don't you just /branch to the survey block from each of the nback blocks? That is:&lt;br/&gt;&lt;br/&gt;Sample your nback blocks randomly at the &amp;lt;expt&amp;gt; level per&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ blocks = [1-18 = noreplace(quick0back1, ...)]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;and in each nback block have&lt;br/&gt;&lt;br/&gt;&amp;lt;block quick0back1&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [survey.thoughtprobe]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 11 Feb 2021 11:57:53 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>