﻿<?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  » Randomizing blocks / trials with no replacement</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 08 Apr 2026 20:16:30 GMT</lastBuildDate><ttl>20</ttl><item><title>Randomizing blocks / trials with no replacement</title><link>https://forums.millisecond.com/Topic26113.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I'm trying to create an experiment, in which I want to randomize 3 different blocks (each with different trials) and display a survey &lt;span style="display: inline !important; float: none; background-color: rgb(255, 255, 255); color: rgb(34, 34, 34); cursor: text; font-family: arial,tahoma; font-size: 13.33px; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;(in running number) &lt;/span&gt;after each block. I've found a forum discussion (&lt;a href="https://www.millisecond.com/forums/Topic23902.aspx),"&gt;https://www.millisecond.com/forums/Topic23902.aspx),&lt;/a&gt; which had some similarities, but instead of displaying the survey with a branch element I want to include it in the experiment element. Furthermore, I want to somehow randomize the experimental blocks and eliminate the possibility that one block is displayed more than once. So at the end, I want the following order of my experiment:&lt;br/&gt;Part 1: randomized Block 1 or Block 2 or Block 3&lt;br/&gt;Survey 1&lt;br/&gt;Part 2: randomized Block 1 or Block 2 or Block 3 (no repeating of the same block as in Part 1)&lt;br/&gt;Survey 2&lt;br/&gt;Part 3: randomized Block 1 or Block 2 or Block 3 (no repeating of the same block as in Part 1 and 2)&lt;br/&gt;Survey 3&lt;br/&gt;&lt;br/&gt;Is there any way to write a code for this? Any help will be very much appreciated.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 26 Nov 2018 07:27:16 GMT</pubDate><dc:creator>Karoline</dc:creator></item><item><title>RE: Randomizing blocks / trials with no replacement</title><link>https://forums.millisecond.com/Topic26117.aspx</link><description>Thanks for your immediate answer! That really helped a lot - I didn't realize that it's that easy and that I just can randomize separated blocks (1,3,5). So thanks again :)</description><pubDate>Mon, 26 Nov 2018 07:27:16 GMT</pubDate><dc:creator>Karoline</dc:creator></item><item><title>RE: Randomizing blocks / trials with no replacement</title><link>https://forums.millisecond.com/Topic26115.aspx</link><description>&lt;div data-id="26113" class="if-quote-wrapper" unselectable="on" data-guid="1543245156316"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26113" 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="26113" 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="26113" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Karoline - Monday, November 26, 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-26113"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;I'm trying to create an experiment, in which I want to randomize 3 different blocks (each with different trials) and display a survey &lt;span style="display: inline !important; float: none; background-color: rgb(255, 255, 255); color: rgb(34, 34, 34); cursor: text; font-family: arial,tahoma; font-size: 13.33px; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;(in running number) &lt;/span&gt;after each block. I've found a forum discussion (&lt;a href="https://www.millisecond.com/forums/Topic23902.aspx),"&gt;&lt;a href="https://www.millisecond.com/forums/Topic23902.aspx),"&gt;https://www.millisecond.com/forums/Topic23902.aspx),&lt;/a&gt;&lt;/a&gt; which had some similarities, but instead of displaying the survey with a branch element I want to include it in the experiment element. Furthermore, I want to somehow randomize the experimental blocks and eliminate the possibility that one block is displayed more than once. So at the end, I want the following order of my experiment:&lt;br/&gt;Part 1: randomized Block 1 or Block 2 or Block 3&lt;br/&gt;Survey 1&lt;br/&gt;Part 2: randomized Block 1 or Block 2 or Block 3 (no repeating of the same block as in Part 1)&lt;br/&gt;Survey 2&lt;br/&gt;Part 3: randomized Block 1 or Block 2 or Block 3 (no repeating of the same block as in Part 1 and 2)&lt;br/&gt;Survey 3&lt;br/&gt;&lt;br/&gt;Is there any way to write a code for this? Any help will be very much appreciated.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26113"&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;Yes, this is easily possible. It goes like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1,3,5 = noreplace(block1, block2, block3); 2 = survey1; 4 =survey2; 6 = survey3]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 26 Nov 2018 07:14:16 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>