﻿<?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  » Color of Randomized Pairs of Words</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 21 Sep 2026 05:29:38 GMT</lastBuildDate><ttl>20</ttl><item><title>Color of Randomized Pairs of Words</title><link>https://forums.millisecond.com/Topic29359.aspx</link><description>&lt;div id="i4c-draggable-container" style="position: fixed; z-index: 1499; width: 0px; height: 0px;"&gt;&lt;div data-reactroot="" class="resolved" style="all: initial;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="i4c-dialogs-container"&gt;&lt;/div&gt;Hi there!&lt;br/&gt;&lt;br/&gt;I am in the process of designing an experiment that shows pairs of words using different colors. The pairs should be the same two words each time, regardless of which list. One list (FishCON/AnimalCON) randomly selects between three colors for the two words that it picks. The other list (FishUNC/AnimalUNC) is supposed to have three pairs of words, with their own respective color, and have a random order. (Cat/whale = Red; Dog/Turtle = Orange;&amp;nbsp; Rabbit/tortoise = purple) So every time, Cat/Whale should be Red, Dog/Turtle should be Orange, and Rabbit/Tortoise should be purple, but the order on when these pairs appear should be random.&lt;br/&gt;&lt;br/&gt;Essentially, all six combined pairs should be randomized each time an experiment is run. I am having trouble with the latter list (FishUNC/AnimalUNC) and coding to where it automatically picks Red for Cat/Whale, etc. each time. Any help would be so greatly appreciated! &lt;br/&gt;&lt;br/&gt;I have copied below the relevant text&lt;br/&gt;&lt;br/&gt;&amp;lt;block 2&amp;gt;&lt;br/&gt;/ trials = random[1-6= 1, 2]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1&amp;gt;&lt;br/&gt;/ stimulustimes = [0=FishCON; 1000 = clearscreen; 1250= AnimalCON; 2250 = clearscreen]&lt;br/&gt;/ ontrialbegin = [text.AnimalCON.textcolor=list.Color.nextvalue;&lt;br/&gt;text.FishCON.textcolor=list.Color2.nextvalue]&lt;br/&gt;/ response = anyresponse&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text FishCON&amp;gt;&lt;br/&gt;/ items = ("Shark", "Pufferfish", "Fish")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/fontstyle = ("Arial", 10.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ size = (75%, 20%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text AnimalCON&amp;gt;&lt;br/&gt;/ items = ("Lion", "Tiger", "Panther")&lt;br/&gt;/ select = text.FishCON.currentindex&lt;br/&gt;/fontstyle = ("Arial", 10.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ size = (75%, 20%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Color&amp;gt;&lt;br/&gt;/items = (yellow, blue, green)&lt;br/&gt;/ selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Color2&amp;gt;&lt;br/&gt;/items = (yellow, blue, green)&lt;br/&gt;/ selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 2&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.FishUNC; 1000 = clearscreen; 1250 = text.AnimalUNC; 2250 = clearscreen;]&lt;br/&gt;/ response = anyresponse&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text FishUNC&amp;gt;&lt;br/&gt;/ items = ("Whale", "Turtle", "Tortoise")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/fontstyle = ("Arial", 10.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ size = (75%, 20%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text AnimalUNC&amp;gt;&lt;br/&gt;/ items = ("Cat", "Dog", "Rabbit")&lt;br/&gt;/ select = text.FishUNC.currentindex&lt;br/&gt;/fontstyle = ("Arial", 10.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ size = (75%, 20%)&lt;br/&gt;&amp;lt;/text&amp;gt;</description><pubDate>Mon, 06 Jul 2020 10:29:28 GMT</pubDate><dc:creator>Westphal00</dc:creator></item><item><title>RE: Color of Randomized Pairs of Words</title><link>https://forums.millisecond.com/Topic29360.aspx</link><description>&lt;blockquote data-id="29359" class="if-quote-wrapper" unselectable="on" data-guid="1594030925828" id="if_insertedNode_1594030924769" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29359" 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="29359" 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="29359" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Westphal00 - 7/5/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-29359"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;div id="i4c-draggable-container" style="position: fixed; z-index: 1499; width: 0px; height: 0px;"&gt;&lt;div data-reactroot="" class="resolved" style="all: initial;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="i4c-dialogs-container"&gt;&lt;/div&gt;Hi there!&lt;br/&gt;&lt;br/&gt;I am in the process of designing an experiment that shows pairs of words using different colors. The pairs should be the same two words each time, regardless of which list. One list (FishCON/AnimalCON) randomly selects between three colors for the two words that it picks. The other list (FishUNC/AnimalUNC) is supposed to have three pairs of words, with their own respective color, and have a random order. (Cat/whale = Red; Dog/Turtle = Orange;&amp;nbsp; Rabbit/tortoise = purple) So every time, Cat/Whale should be Red, Dog/Turtle should be Orange, and Rabbit/Tortoise should be purple, but the order on when these pairs appear should be random.&lt;br/&gt;&lt;br/&gt;Essentially, all six combined pairs should be randomized each time an experiment is run. I am having trouble with the latter list (FishUNC/AnimalUNC) and coding to where it automatically picks Red for Cat/Whale, etc. each time. Any help would be so greatly appreciated! &lt;br/&gt;&lt;br/&gt;I have copied below the relevant text&lt;br/&gt;&lt;br/&gt;&amp;lt;block 2&amp;gt;&lt;br/&gt;/ trials = random[1-6= 1, 2]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1&amp;gt;&lt;br/&gt;/ stimulustimes = [0=FishCON; 1000 = clearscreen; 1250= AnimalCON; 2250 = clearscreen]&lt;br/&gt;/ ontrialbegin = [text.AnimalCON.textcolor=list.Color.nextvalue;&lt;br/&gt;text.FishCON.textcolor=list.Color2.nextvalue]&lt;br/&gt;/ response = anyresponse&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text FishCON&amp;gt;&lt;br/&gt;/ items = ("Shark", "Pufferfish", "Fish")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/fontstyle = ("Arial", 10.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ size = (75%, 20%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text AnimalCON&amp;gt;&lt;br/&gt;/ items = ("Lion", "Tiger", "Panther")&lt;br/&gt;/ select = text.FishCON.currentindex&lt;br/&gt;/fontstyle = ("Arial", 10.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ size = (75%, 20%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Color&amp;gt;&lt;br/&gt;/items = (yellow, blue, green)&lt;br/&gt;/ selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Color2&amp;gt;&lt;br/&gt;/items = (yellow, blue, green)&lt;br/&gt;/ selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 2&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.FishUNC; 1000 = clearscreen; 1250 = text.AnimalUNC; 2250 = clearscreen;]&lt;br/&gt;/ response = anyresponse&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text FishUNC&amp;gt;&lt;br/&gt;/ items = ("Whale", "Turtle", "Tortoise")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/fontstyle = ("Arial", 10.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ size = (75%, 20%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text AnimalUNC&amp;gt;&lt;br/&gt;/ items = ("Cat", "Dog", "Rabbit")&lt;br/&gt;/ select = text.FishUNC.currentindex&lt;br/&gt;/fontstyle = ("Arial", 10.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ size = (75%, 20%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29359"&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 need to pair a &amp;lt;list&amp;gt; holding the colors assigned to the pairs to the selection of the respective &amp;lt;text&amp;gt; element:&lt;br/&gt;&lt;br/&gt;&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-6 = 2]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 2&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text.FishUNC.textcolor = list.paircolor.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text.AnimalUNC.textcolor = list.paircolor.currentvalue;&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [0 = text.FishUNC; 1000 = clearscreen; 1250 = text.AnimalUNC; 2250 = clearscreen;]&lt;br/&gt;/ response = anyresponse&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text FishUNC&amp;gt;&lt;br/&gt;/ items = ("Whale", "Turtle", "Tortoise")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/fontstyle = ("Arial", 10.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ size = (75%, 20%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text AnimalUNC&amp;gt;&lt;br/&gt;/ items = ("Cat", "Dog", "Rabbit")&lt;br/&gt;/ select = text.FishUNC.currentindex&lt;br/&gt;/fontstyle = ("Arial", 10.00%, false, false, false, false, 5, 1)&lt;br/&gt;/ size = (75%, 20%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list paircolor&amp;gt;&lt;br/&gt;/ items = (red, orange, purple)&lt;br/&gt;&lt;strong&gt;/ selectionmode = text.FishUNC.nextindex&lt;/strong&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 06 Jul 2020 10:29:28 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>