﻿<?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</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 13 Sep 2026 01:15:57 GMT</lastBuildDate><ttl>20</ttl><item><title>Randomizing</title><link>https://forums.millisecond.com/Topic30690.aspx</link><description>Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am conducting a face recognition task where I have 2 learning phases, and 2 test phases.&amp;nbsp;&lt;br/&gt;There are 80 faces in total (40 Black and 40 White), and in the first learning phase I want there to be 20 faces that participants study (10 Black and 10 White) and these faces will be shown two times consecutively. For the first test phase, I want the participants the 20 faces they studied to be shown again, plus an additional 20 that they will not have seen before (From here, these 40 faces will be marked as "seen"). Then I would like for my second learning and test phase to do the same thing, just with the remaining 40/80 faces.&lt;br/&gt;&lt;br/&gt;The problem comes when I try to get these faces to be randomized, while still keeping the 50/50 of Black and White faces! &lt;br/&gt;Ideally, I would want to have one large list of the 80 faces or two lists of 40 (separated by race) that I would be able to call from multiple times during the experiment.&amp;nbsp;My test phase right now isn't random, as you'll see I have it set up so that the first ten faces on the list are those that have been seen, which is why I was able to make the conditional formatting for the "iscorrectresponse" element, I dont think this would be able to work in a randomized format.&lt;br/&gt;&lt;br/&gt;If anyone has any ideas or suggestions, that'd be great! &lt;br/&gt;I've included my code below, but feel free to change something if you think that there's an easier way to handle this.&lt;br/&gt;Thanks in advance!&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;font color="#424242"&gt;Heres my code:&lt;/font&gt;&lt;/strong&gt;&lt;br/&gt;&lt;i&gt;(I didn't&amp;nbsp;include the item list of faces, because its so long) &lt;/i&gt;&lt;br/&gt;&lt;strong&gt;&lt;br/&gt;LEARNING PHASE CODE&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial BlackLearnedFaces&amp;gt;&lt;br/&gt;/ stimulusframes = [1= fixation; 20=BlackLearn1]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ correctresponse = (noresponse)&lt;br/&gt;/ timeout = 3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial WhiteLearnedFaces&amp;gt;&lt;br/&gt;/ stimulusframes = [1= fixation; 20=WhiteLearn1]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ correctresponse = (noresponse)&lt;br/&gt;/ timeout = 3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block UninformedLearningPhase&amp;gt;&lt;br/&gt;/ trials = [1-20 = noreplace(BlackLearnedFaces, WhiteLearnedFaces)]&lt;br/&gt;/ preinstructions = (LearningPhaseInstructions)&lt;br/&gt;/ postinstructions = (RepeatLearningInstructions)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;TESTING PHASE CODE&lt;br/&gt;&lt;/strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br/&gt;&amp;lt;values &amp;gt;&lt;br/&gt;/ current = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt; trial BlackRound1&amp;gt;&lt;br/&gt;/ stimulustimes = [ 1 = fixation, testphaseinstructNOT, testphaseinstructSEEN; 1000 = BlackTestRound1, testphaseinstructNOT, testphaseinstructSEEN]&lt;br/&gt;/ validresponse = (",",".")&lt;br/&gt;/ iscorrectresponse = [(trial.BlackRound1.response == "." &amp;amp;&amp;amp; picture.BlackTestRound1.currentindex &amp;lt;= 10) ||&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(trial.BlackRound1.response == "," &amp;amp;&amp;amp; picture.BlackTestRound1.currentindex &amp;gt; 10)]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ ontrialbegin = [values.current = 0]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;/ ontrialend = [ if( picture.BlackTestRound1.currentindex &amp;lt;= 10) values.current = 1 else values.current = 0]&lt;br/&gt;&amp;lt;/trial&amp;gt; &lt;br/&gt;&lt;br/&gt;&amp;lt; trial WhiteRound1&amp;gt;&lt;br/&gt;/ stimulustimes = [ 1 = fixation, testphaseinstructNOT, testphaseinstructSEEN; 1000 = WhiteTestRound1, testphaseinstructNOT, testphaseinstructSEEN]&lt;br/&gt;/ validresponse = (",",".")&lt;br/&gt;/ iscorrectresponse = [(trial.BlackRound1.response == "." &amp;amp;&amp;amp; picture.BlackTestRound1.currentindex &amp;lt;= 10) ||&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (trial.BlackRound1.response == "," &amp;amp;&amp;amp; picture.BlackTestRound1.currentindex &amp;gt; 10)]&amp;nbsp; &lt;br/&gt;/ ontrialbegin = [values.current = 0]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;/ ontrialend = [ if( picture.BlackTestRound1.currentindex &amp;lt;= 10) values.current = 1 else values.current = 0]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block TestRound1&amp;gt;&lt;br/&gt;/trials = [ 1-40 = noreplace(BlackRound1,WhiteRound1)]&lt;br/&gt;/ preinstructions = (TestPhaseInstructions)&lt;br/&gt;/ postinstructions = (TestBlock_Instructions)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 01 Feb 2021 19:53:31 GMT</pubDate><dc:creator>bcharlton</dc:creator></item><item><title>RE: Randomizing</title><link>https://forums.millisecond.com/Topic30691.aspx</link><description>&lt;blockquote data-id="30690" class="if-quote-wrapper" unselectable="on" data-guid="1612208674827" id="if_insertedNode_1612208673913" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30690" 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="30690" 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="30690" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;bcharlton - 2/1/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-30690"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am conducting a face recognition task where I have 2 learning phases, and 2 test phases.&amp;nbsp;&lt;br/&gt;There are 80 faces in total (40 Black and 40 White), and in the first learning phase I want there to be 20 faces that participants study (10 Black and 10 White) and these faces will be shown two times consecutively. For the first test phase, I want the participants the 20 faces they studied to be shown again, plus an additional 20 that they will not have seen before (From here, these 40 faces will be marked as "seen"). Then I would like for my second learning and test phase to do the same thing, just with the remaining 40/80 faces.&lt;br/&gt;&lt;br/&gt;The problem comes when I try to get these faces to be randomized, while still keeping the 50/50 of Black and White faces! &lt;br/&gt;Ideally, I would want to have one large list of the 80 faces or two lists of 40 (separated by race) that I would be able to call from multiple times during the experiment.&amp;nbsp;My test phase right now isn't random, as you'll see I have it set up so that the first ten faces on the list are those that have been seen, which is why I was able to make the conditional formatting for the "iscorrectresponse" element, I dont think this would be able to work in a randomized format.&lt;br/&gt;&lt;br/&gt;If anyone has any ideas or suggestions, that'd be great! &lt;br/&gt;I've included my code below, but feel free to change something if you think that there's an easier way to handle this.&lt;br/&gt;Thanks in advance!&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;font color="#424242"&gt;Heres my code:&lt;/font&gt;&lt;/strong&gt;&lt;br/&gt;&lt;i&gt;(I didn't&amp;nbsp;include the item list of faces, because its so long) &lt;/i&gt;&lt;br/&gt;&lt;strong&gt;&lt;br/&gt;LEARNING PHASE CODE&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial BlackLearnedFaces&amp;gt;&lt;br/&gt;/ stimulusframes = [1= fixation; 20=BlackLearn1]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ correctresponse = (noresponse)&lt;br/&gt;/ timeout = 3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial WhiteLearnedFaces&amp;gt;&lt;br/&gt;/ stimulusframes = [1= fixation; 20=WhiteLearn1]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ correctresponse = (noresponse)&lt;br/&gt;/ timeout = 3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block UninformedLearningPhase&amp;gt;&lt;br/&gt;/ trials = [1-20 = noreplace(BlackLearnedFaces, WhiteLearnedFaces)]&lt;br/&gt;/ preinstructions = (LearningPhaseInstructions)&lt;br/&gt;/ postinstructions = (RepeatLearningInstructions)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;TESTING PHASE CODE&lt;br/&gt;&lt;/strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br/&gt;&amp;lt;values &amp;gt;&lt;br/&gt;/ current = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt; trial BlackRound1&amp;gt;&lt;br/&gt;/ stimulustimes = [ 1 = fixation, testphaseinstructNOT, testphaseinstructSEEN; 1000 = BlackTestRound1, testphaseinstructNOT, testphaseinstructSEEN]&lt;br/&gt;/ validresponse = (",",".")&lt;br/&gt;/ iscorrectresponse = [(trial.BlackRound1.response == "." &amp;amp;&amp;amp; picture.BlackTestRound1.currentindex &amp;lt;= 10) ||&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(trial.BlackRound1.response == "," &amp;amp;&amp;amp; picture.BlackTestRound1.currentindex &amp;gt; 10)]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ ontrialbegin = [values.current = 0]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;/ ontrialend = [ if( picture.BlackTestRound1.currentindex &amp;lt;= 10) values.current = 1 else values.current = 0]&lt;br/&gt;&amp;lt;/trial&amp;gt; &lt;br/&gt;&lt;br/&gt;&amp;lt; trial WhiteRound1&amp;gt;&lt;br/&gt;/ stimulustimes = [ 1 = fixation, testphaseinstructNOT, testphaseinstructSEEN; 1000 = WhiteTestRound1, testphaseinstructNOT, testphaseinstructSEEN]&lt;br/&gt;/ validresponse = (",",".")&lt;br/&gt;/ iscorrectresponse = [(trial.BlackRound1.response == "." &amp;amp;&amp;amp; picture.BlackTestRound1.currentindex &amp;lt;= 10) ||&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (trial.BlackRound1.response == "," &amp;amp;&amp;amp; picture.BlackTestRound1.currentindex &amp;gt; 10)]&amp;nbsp; &lt;br/&gt;/ ontrialbegin = [values.current = 0]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;/ ontrialend = [ if( picture.BlackTestRound1.currentindex &amp;lt;= 10) values.current = 1 else values.current = 0]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block TestRound1&amp;gt;&lt;br/&gt;/trials = [ 1-40 = noreplace(BlackRound1,WhiteRound1)]&lt;br/&gt;/ preinstructions = (TestPhaseInstructions)&lt;br/&gt;/ postinstructions = (TestBlock_Instructions)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30690"&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;What you describe is essentially an old-new paradigm, and those have been discussed here multiple times before. See e.g. &lt;a href="https://www.millisecond.com/forums/Topic17069.aspx"&gt;https://www.millisecond.com/forums/Topic17069.aspx&lt;/a&gt; or &lt;a href="https://www.millisecond.com/forums/Topic21813.aspx"&gt;https://www.millisecond.com/forums/Topic21813.aspx&lt;/a&gt;&lt;br/&gt;</description><pubDate>Mon, 01 Feb 2021 19:53:31 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>