﻿<?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  » randomly varying the parts of the text item</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 20 Sep 2026 02:52:09 GMT</lastBuildDate><ttl>20</ttl><item><title>randomly varying the parts of the text item</title><link>https://forums.millisecond.com/Topic29903.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;Is there a way to randomly vary some part of the text item? I would like to randomly present a description of a person, but at the same time vary their names.&lt;br/&gt;I know that I could do this by just making two sets of text. However, in this case, there is a problem with positioning the names and the descriptions, because the lengths of names and descriptions vary, and therefore, the positions need to be adjusted per item accordingly.&lt;br/&gt;&lt;br/&gt;So I was wondering if there's a way to randomly vary the name part of each description item, and track which name was presented for each trial.&lt;br/&gt;&lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 16 Oct 2020 11:57:25 GMT</pubDate><dc:creator>deh</dc:creator></item><item><title>RE: randomly varying the parts of the text item</title><link>https://forums.millisecond.com/Topic29905.aspx</link><description>&lt;blockquote data-id="29904" class="if-quote-wrapper" unselectable="on" data-guid="1602849359052" id="if_insertedNode_1602849357473" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29904" 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="29904" 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="29904" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 10/16/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-29904"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="29903" class="if-quote-wrapper" unselectable="on" data-guid="1602849359052" id="if_insertedNode_1602848881230" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29903" 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="29903" 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="29903" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;deh - 10/16/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-29903"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;&lt;br/&gt;Is there a way to randomly vary some part of the text item? I would like to randomly present a description of a person, but at the same time vary their names.&lt;br/&gt;I know that I could do this by just making two sets of text. However, in this case, there is a problem with positioning the names and the descriptions, because the lengths of names and descriptions vary, and therefore, the positions need to be adjusted per item accordingly.&lt;br/&gt;&lt;br/&gt;So I was wondering if there's a way to randomly vary the name part of each description item, and track which name was presented for each trial.&lt;br/&gt;&lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29903"&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;lt;values&amp;gt;&lt;br/&gt;/ currentname = ""&lt;br/&gt;/ currentage = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list randomnames&amp;gt;&lt;br/&gt;/ items = ("Anna", "Barbara")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list randomages&amp;gt;&lt;br/&gt;/ items = ("24", "53")&lt;br/&gt;/ selectionmode = list.randomnames.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-2 = example]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block example&amp;gt;&lt;br/&gt;/ onblockbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.currentname = list.randomnames.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.currentage = list.randomages.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ trials = [1-2 = exampletrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial exampletrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=description]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text description&amp;gt;&lt;br/&gt;/ items = descriptionitems&lt;br/&gt;/ select = sequence&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item descriptionitems&amp;gt;&lt;br/&gt;/ 1 = "This is &amp;lt;%values.currentname%&amp;gt;."&lt;br/&gt;/ 2 = "&amp;lt;%values.currentname%&amp;gt; is &amp;lt;%values.currentage%&amp;gt; years old."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29904"&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;Also see &lt;a href="https://www.millisecond.com/forums/FindPost28411.aspx"&gt;https://www.millisecond.com/forums/FindPost28411.aspx&lt;/a&gt;</description><pubDate>Fri, 16 Oct 2020 11:57:25 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: randomly varying the parts of the text item</title><link>https://forums.millisecond.com/Topic29904.aspx</link><description>&lt;blockquote data-id="29903" class="if-quote-wrapper" unselectable="on" data-guid="1602848882255" id="if_insertedNode_1602848881230" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29903" 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="29903" 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="29903" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;deh - 10/16/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-29903"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;&lt;br/&gt;Is there a way to randomly vary some part of the text item? I would like to randomly present a description of a person, but at the same time vary their names.&lt;br/&gt;I know that I could do this by just making two sets of text. However, in this case, there is a problem with positioning the names and the descriptions, because the lengths of names and descriptions vary, and therefore, the positions need to be adjusted per item accordingly.&lt;br/&gt;&lt;br/&gt;So I was wondering if there's a way to randomly vary the name part of each description item, and track which name was presented for each trial.&lt;br/&gt;&lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29903"&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;lt;values&amp;gt;&lt;br/&gt;/ currentname = ""&lt;br/&gt;/ currentage = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list randomnames&amp;gt;&lt;br/&gt;/ items = ("Anna", "Barbara")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list randomages&amp;gt;&lt;br/&gt;/ items = ("24", "53")&lt;br/&gt;/ selectionmode = list.randomnames.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-2 = example]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block example&amp;gt;&lt;br/&gt;/ onblockbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.currentname = list.randomnames.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.currentage = list.randomages.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ trials = [1-2 = exampletrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial exampletrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=description]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text description&amp;gt;&lt;br/&gt;/ items = descriptionitems&lt;br/&gt;/ select = sequence&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item descriptionitems&amp;gt;&lt;br/&gt;/ 1 = "This is &amp;lt;%values.currentname%&amp;gt;."&lt;br/&gt;/ 2 = "&amp;lt;%values.currentname%&amp;gt; is &amp;lt;%values.currentage%&amp;gt; years old."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 16 Oct 2020 11:55:30 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>