﻿<?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  » Randomize the order of trials</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 22 Apr 2026 21:07:13 GMT</lastBuildDate><ttl>20</ttl><item><title>Randomize the order of trials</title><link>https://forums.millisecond.com/Topic35607.aspx</link><description>Hi Dave,&lt;br/&gt;&lt;br/&gt;I am wondering if I can randomize the order of several trials with the list function?&lt;br/&gt;In my experiment, every trial contains a movie file, as well as two markers for the movie (one for the recording with biopac, and another for the recording with eyetracker).&lt;br/&gt;I have eight movie trials in total, and I'd love to randomize the order of presentation of each movie in the experiment. I also want to have a fixation cross between the transition of each movie trial.&lt;br/&gt;At the moment, I have created a list attribute containing all movie trials:&lt;br/&gt;&lt;br/&gt;&amp;lt;list movielist&amp;gt;&lt;br/&gt;/items = (trial.movie1, trial.movie2,  trial.movie3,  trial.movie4,  trial.movie5,  trial.movie6,  trial.movie7, trial.movie8)&lt;br/&gt;/selectionmode=random&lt;br/&gt;/replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;If I create the following block, will inquisit randomize the order of movie trials without replacement? If not, is there a way to achieve randomization in this case? I have thought about using the item attribute, but I do need the markers for each movie file. Therefore, the item attribute is not suitable in this case. Thank you in advance for your help!&lt;br/&gt;&lt;br/&gt;&amp;lt;block experiment&amp;gt;&lt;br/&gt;/trials= [1=trial.fixation; 2= list.movielist; 3= trial.fixation; 4=list.movielist; 5 = trial.fixation; 6 = list.movielist;&lt;br/&gt;7=trial.fixation; 8=list.movielist; 9 = trial.fixation; 10=list.movielist; 11= trial.fixation; 12= list.movielist;&lt;br/&gt;13 = trial.fixation; 14 = list.movielist; 15= trial.fixation; 16 = list.movielist]&lt;br/&gt;&amp;lt;/block&amp;gt;</description><pubDate>Sun, 03 Sep 2023 18:14:27 GMT</pubDate><dc:creator>ttyelnv</dc:creator></item><item><title>RE: Randomize the order of trials</title><link>https://forums.millisecond.com/Topic35616.aspx</link><description>Thank you so much Dave!</description><pubDate>Sun, 03 Sep 2023 18:14:27 GMT</pubDate><dc:creator>ttyelnv</dc:creator></item><item><title>RE: Randomize the order of trials</title><link>https://forums.millisecond.com/Topic35608.aspx</link><description>&lt;blockquote data-id="35607" class="if-quote-wrapper" unselectable="on" data-guid="1692725810031" contenteditable="false" id="if_insertedNode_1692725808353"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35607" 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="35607" 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="35607" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nuttymenkk - 8/22/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35607"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;I am wondering if I can randomize the order of several trials with the list function?&lt;br/&gt;In my experiment, every trial contains a movie file, as well as two markers for the movie (one for the recording with biopac, and another for the recording with eyetracker).&lt;br/&gt;I have eight movie trials in total, and I'd love to randomize the order of presentation of each movie in the experiment. I also want to have a fixation cross between the transition of each movie trial.&lt;br/&gt;At the moment, I have created a list attribute containing all movie trials:&lt;br/&gt;&lt;br/&gt;&amp;lt;list movielist&amp;gt;&lt;br/&gt;/items = (trial.movie1, trial.movie2,  trial.movie3,  trial.movie4,  trial.movie5,  trial.movie6,  trial.movie7, trial.movie8)&lt;br/&gt;/selectionmode=random&lt;br/&gt;/replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;If I create the following block, will inquisit randomize the order of movie trials without replacement? If not, is there a way to achieve randomization in this case? I have thought about using the item attribute, but I do need the markers for each movie file. Therefore, the item attribute is not suitable in this case. Thank you in advance for your help!&lt;br/&gt;&lt;br/&gt;&amp;lt;block experiment&amp;gt;&lt;br/&gt;/trials= [1=trial.fixation; 2= list.movielist; 3= trial.fixation; 4=list.movielist; 5 = trial.fixation; 6 = list.movielist;&lt;br/&gt;7=trial.fixation; 8=list.movielist; 9 = trial.fixation; 10=list.movielist; 11= trial.fixation; 12= list.movielist;&lt;br/&gt;13 = trial.fixation; 14 = list.movielist; 15= trial.fixation; 16 = list.movielist]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35607"&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;You can do this and it'll do what you want,but you don't even need any &amp;lt;list&amp;gt;. You can simply state your block's /trials as:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block experiment&amp;gt;&lt;br/&gt;/ trials = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1,3,5,7,9,11,13,15 = trial.fixation; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2,4,6,8,10,12,14,16 = noreplace(trial.movie1, trial.movie2, trial.movie3, trial.movie4, trial.movie5, trial.movie6, trial.movie7, trial.movie8);&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 22 Aug 2023 17:41:05 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>