﻿<?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  » How do I both randomize the order in which my trials appear and set the number of "correct" response trials that should appear during my experiment?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 06 Jun 2026 21:43:29 GMT</lastBuildDate><ttl>20</ttl><item><title>How do I both randomize the order in which my trials appear and set the number of "correct" response trials that should appear during my experiment?</title><link>https://forums.millisecond.com/Topic27496.aspx</link><description>I'm working on a version of a GNAT, and the project's PI wants to be able to specifically set the number of "correct pairs"&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;(or pairs of images that are designated as requiring the press of a space bar) that participants are shown. How can I do this while also randomizing the order in which participants see trials?&lt;/span&gt;</description><pubDate>Tue, 23 Jul 2019 11:14:48 GMT</pubDate><dc:creator>psychnewbie</dc:creator></item><item><title>RE: How do I both randomize the order in which my trials appear and set the number of "correct" response trials that should appear during my experiment?</title><link>https://forums.millisecond.com/Topic27501.aspx</link><description>&lt;div data-id="27498" class="if-quote-wrapper" unselectable="on" data-guid="1563905495912"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27498" 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="27498" 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="27498" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;psychnewbie - 7/23/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27498"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27497" class="if-quote-wrapper" unselectable="on" data-guid="1563905495912"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27497" 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="27497" 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="27497" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 7/23/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27497"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27496" class="if-quote-wrapper" unselectable="on" data-guid="1563905495912"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27496" 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="27496" 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="27496" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;psychnewbie - 7/23/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27496"&gt;&lt;div class="if-quote-message-margin"&gt;I'm working on a version of a GNAT, and the project's PI wants to be able to specifically set the number of "correct pairs"&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;(or pairs of images that are designated as requiring the press of a space bar) that participants are shown. How can I do this while also randomizing the order in which participants see trials?&lt;/span&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27496"&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;There isn't sufficient information here to give a response. Ordinarily, you simply create two &amp;lt;trial&amp;gt; elements -- one that displays a "correct pair" and thus requires a response, another one that doesn't -- and then you randomize their order via the &amp;lt;block&amp;gt;'s /trials attribute.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27497"&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;I've done that, but is there any way to (for example) specify that within a block of 50 trials, the "correct pair" trial appears 30 times? Or is that not compatible with randomizing trials within blocks?&lt;a class="if-quote-goto quote-link" href="#" data-id="27498"&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;That's perfectly possible. You simply enter the trials in the desired proportions into the noreplace() selection pool in the &amp;lt;block&amp;gt;'s /trials attribute.&lt;br/&gt;&lt;br/&gt;/ trials = [1 - 50 = noreplace(&lt;strong&gt;correct_pair, correct_pair, correct_pair,&lt;/strong&gt;&lt;span style="font-style: italic;"&gt; incorrect_pair, incorrect_pair&lt;/span&gt;)]&lt;br/&gt;&lt;br/&gt;will run exactly 30 instances of &amp;lt;trial correct_pair&amp;gt; and 20 instances of &amp;lt;trial incorrect_pair&amp;gt; in random order, i.e. a 3:2 ratio.&lt;br/&gt;</description><pubDate>Tue, 23 Jul 2019 11:14:48 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: How do I both randomize the order in which my trials appear and set the number of "correct" response trials that should appear during my experiment?</title><link>https://forums.millisecond.com/Topic27498.aspx</link><description>&lt;div data-id="27497" class="if-quote-wrapper" unselectable="on" data-guid="1563901415630"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27497" 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="27497" 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="27497" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 7/23/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27497"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27496" class="if-quote-wrapper" unselectable="on" data-guid="1563901415630"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27496" 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="27496" 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="27496" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;psychnewbie - 7/23/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27496"&gt;&lt;div class="if-quote-message-margin"&gt;I'm working on a version of a GNAT, and the project's PI wants to be able to specifically set the number of "correct pairs"&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;(or pairs of images that are designated as requiring the press of a space bar) that participants are shown. How can I do this while also randomizing the order in which participants see trials?&lt;/span&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27496"&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;There isn't sufficient information here to give a response. Ordinarily, you simply create two &amp;lt;trial&amp;gt; elements -- one that displays a "correct pair" and thus requires a response, another one that doesn't -- and then you randomize their order via the &amp;lt;block&amp;gt;'s /trials attribute.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27497"&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;I've done that, but is there any way to (for example) specify that within a block of 50 trials, the "correct pair" trial appears 30 times? Or is that not compatible with randomizing trials within blocks?</description><pubDate>Tue, 23 Jul 2019 10:04:53 GMT</pubDate><dc:creator>psychnewbie</dc:creator></item><item><title>RE: How do I both randomize the order in which my trials appear and set the number of "correct" response trials that should appear during my experiment?</title><link>https://forums.millisecond.com/Topic27497.aspx</link><description>&lt;div data-id="27496" class="if-quote-wrapper" unselectable="on" data-guid="1563900789373"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27496" 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="27496" 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="27496" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;psychnewbie - 7/23/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27496"&gt;&lt;div class="if-quote-message-margin"&gt;I'm working on a version of a GNAT, and the project's PI wants to be able to specifically set the number of "correct pairs"&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;(or pairs of images that are designated as requiring the press of a space bar) that participants are shown. How can I do this while also randomizing the order in which participants see trials?&lt;/span&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27496"&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;There isn't sufficient information here to give a response. Ordinarily, you simply create two &amp;lt;trial&amp;gt; elements -- one that displays a "correct pair" and thus requires a response, another one that doesn't -- and then you randomize their order via the &amp;lt;block&amp;gt;'s /trials attribute.&lt;br/&gt;</description><pubDate>Tue, 23 Jul 2019 09:54:44 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>