﻿<?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 2.0  » Randomize trials that have already been defined</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 30 Apr 2026 17:33:27 GMT</lastBuildDate><ttl>20</ttl><item><title>Randomize trials that have already been defined</title><link>https://forums.millisecond.com/Topic5005.aspx</link><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have 3 categories of stimuli, containing 5 stimuli each (so, there is a total of 15 stimuli). I want to run 24 trials total, but I do NOT want each category to be presented at equal frequency or ratios. I want the ratio of the stimuli from the three cateorgies to go in this breakdown 7:7:10. How do I do that? &lt;/p&gt;
&lt;p&gt;In other words, I want to assign a frequency to each category, but then have Inquisit select them at random?&lt;/p&gt;
&lt;p&gt;They syntax I thought might work is:&lt;/p&gt;
&lt;p&gt;/trials=random[1-7=noreplace(category1);8-14=noreplace(category2);15-24=noreplace(category3)]&lt;/p&gt;
&lt;p&gt;However, this does not tell Inquisit to select all the trials randomly because it defines trials 1 through 7 from category1 and trials 8-14 from category 2, etc. I just basically want to tell Inquisit the ratio: category1 should have 7 trials, category2 should have 7 trials, and category3 should have 10 trials (and select the trials in random order following this category ratio).&lt;/p&gt;
&lt;p&gt;Any suggestions would be greatly appreciated! Thanks!&lt;/p&gt;</description><pubDate>Tue, 02 Jun 2020 23:35:19 GMT</pubDate><dc:creator>Valerie</dc:creator></item><item><title>RE: Randomize trials that have already been defined</title><link>https://forums.millisecond.com/Topic29166.aspx</link><description>&lt;blockquote data-id="29136" class="if-quote-wrapper" unselectable="on" data-guid="1591140816916" id="if_insertedNode_1591140816488" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29136" 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="29136" 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="29136" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;aliciay1 - 5/29/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29136"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;To add to this question I was wondering if it is possible to manipulate the randomised selection so that no two same stimuli are selected in a row. Is it possible to do this? If so, how would that be established?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;For example: I have digits 1-9 selected from a list presented 24 times but I want the selection order to be randomised each time and ensure the same digit is not represented twice. Would a no replace function work in this instance?&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;/items = (&lt;br/&gt;trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_nogo, trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_go, &lt;br/&gt; trial.go, trial.practice_go, trial.practice_go, trial.practice_nogo, trial.practice_go, trial.practice_go, trial.practice_nogo, trial.practice_nogo, trial.practice_go, trial.practice_nogo, trial.practice_go, trial.practice_go)&lt;br/&gt;/ replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;Note: list of digits used for practice; tied to list.practice_trialtypes&lt;br/&gt;&amp;lt;list practice_digitsequence&amp;gt;&lt;br/&gt;/items = (&lt;br/&gt;1, 2, 8, 4, 2, 3, 1, 5, 6, 7, 3, 4, 1, 2, 3, 9, 3, 2, 7, 9, 5, 4, 2, 5)&lt;br/&gt;/selectionmode = list.practice_trialtype.currentindex&lt;br/&gt;/resetinterval = 1&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block practice&amp;gt;&lt;br/&gt;/postinstructions = (practiceend MWexamples1 realtask)&lt;br/&gt;/trials = [1 = getReadyPrac; 2-25 = list.practice_trialtype]&lt;br/&gt;/onblockend = [list.fontsizes.reset()]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Apologies if my question is not understandable. Any help would be greatly appreciated.&lt;br/&gt;Thanks. &lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29136"&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;&amp;gt; I have digits 1-9 selected from a list presented 24 times but I want the selection order to be randomised each time and ensure the same digit is not represented twice. Would a no replace function work in this instance?  &lt;br/&gt;&lt;br/&gt;No, since your digit list's selection is dependent on the selection in the trial type list.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Note: list of digits used for practice; tied to list.practice_trialtypes&lt;/strong&gt;&lt;br/&gt;&amp;lt;list practice_digitsequence&amp;gt;&lt;br/&gt;/items = (&lt;br/&gt;1, 2, 8, 4, 2, 3, 1, 5, 6, 7, 3, 4, 1, 2, 3, 9, 3, 2, 7, 9, 5, 4, 2, 5)&lt;br/&gt;/selectionmode =&lt;strong&gt; list.practice_trialtype.currentindex&lt;/strong&gt;&lt;br/&gt;/resetinterval = 1&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 02 Jun 2020 23:35:19 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Randomize trials that have already been defined</title><link>https://forums.millisecond.com/Topic29136.aspx</link><description>Hi,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;To add to this question I was wondering if it is possible to manipulate the randomised selection so that no two same stimuli are selected in a row. Is it possible to do this? If so, how would that be established?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;For example: I have digits 1-9 selected from a list presented 24 times but I want the selection order to be randomised each time and ensure the same digit is not represented twice. Would a no replace function work in this instance?&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;/items = (&lt;br/&gt;trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_nogo, trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_go, trial.practice_go, &lt;br/&gt; trial.go, trial.practice_go, trial.practice_go, trial.practice_nogo, trial.practice_go, trial.practice_go, trial.practice_nogo, trial.practice_nogo, trial.practice_go, trial.practice_nogo, trial.practice_go, trial.practice_go)&lt;br/&gt;/ replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;Note: list of digits used for practice; tied to list.practice_trialtypes&lt;br/&gt;&amp;lt;list practice_digitsequence&amp;gt;&lt;br/&gt;/items = (&lt;br/&gt;1, 2, 8, 4, 2, 3, 1, 5, 6, 7, 3, 4, 1, 2, 3, 9, 3, 2, 7, 9, 5, 4, 2, 5)&lt;br/&gt;/selectionmode = list.practice_trialtype.currentindex&lt;br/&gt;/resetinterval = 1&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block practice&amp;gt;&lt;br/&gt;/postinstructions = (practiceend MWexamples1 realtask)&lt;br/&gt;/trials = [1 = getReadyPrac; 2-25 = list.practice_trialtype]&lt;br/&gt;/onblockend = [list.fontsizes.reset()]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Apologies if my question is not understandable. Any help would be greatly appreciated.&lt;br/&gt;Thanks. &lt;br/&gt;</description><pubDate>Fri, 29 May 2020 01:59:01 GMT</pubDate><dc:creator>aliciay1</dc:creator></item><item><title>RE: Randomize trials that have already been defined</title><link>https://forums.millisecond.com/Topic5016.aspx</link><description>&lt;p&gt;Thank you Dave, that was quite helpful!!&lt;/p&gt;
&lt;p&gt;-Valerie&lt;/p&gt;</description><pubDate>Wed, 13 Oct 2010 06:50:13 GMT</pubDate><dc:creator>Valerie</dc:creator></item><item><title>RE: Randomize trials that have already been defined</title><link>https://forums.millisecond.com/Topic5006.aspx</link><description>&lt;p&gt;To sample trials in the desired proportions (7:7:10), you must simply enter them to the noreplace selection pool in the desired proportions. In your case that's&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;block myblock&amp;gt;&lt;br /&gt;/ trials = [1-24=noreplace(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; category1,category1,category1,category1,category1,category1,category1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; category2,category2,category2,category2,category2,category2,category2,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; category3,category3,category3,category3,category3,category3,category3,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; category3,category3,category3)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;br /&gt;[...]&lt;br /&gt;&amp;lt;/block&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Fri, 08 Oct 2010 13:06:52 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>