﻿<?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  » random stimulus fixed by participant</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 08 May 2026 05:40:55 GMT</lastBuildDate><ttl>20</ttl><item><title>random stimulus fixed by participant</title><link>https://forums.millisecond.com/Topic22801.aspx</link><description>Hey,&lt;br/&gt;&lt;br/&gt;I'm having trouble randomizing my stimulus set.&lt;br/&gt;&lt;br/&gt;Imagine you have three levels of reward (e.g. +£1, +£2, +£3) which are given according to different stimuli (e.g. square, circle, triangle) but you want to randomize this by participant so that e.g. participant 1 always has £1 for a square, but this is different for each participant. How would you go about this? Is there a type of selection that would work, or is there much more code involved that creates specific lists for each participant at the beginning of the experiment?&lt;br/&gt;&lt;br/&gt;&amp;lt;picture shapes&amp;gt;&lt;br/&gt;/erase = false&lt;br/&gt;/items = ("square.png", "circle.png", "triangle.png")&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/select = ???&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial reward1&amp;gt;&lt;br/&gt;/stimulustimes = [0 = pointstotal, shape]&lt;br/&gt;/trialduration = 3000&lt;br/&gt;/correctresponse = (lbuttondown)&lt;br/&gt;/validresponse = (noresponse)&lt;br/&gt;/validresponse = (lbuttondown)&lt;br/&gt;/ontrialend = [if (trial.reward.correct) values.pointstotal +=1;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Fri, 03 Nov 2017 10:39:24 GMT</pubDate><dc:creator>charlottebooth</dc:creator></item><item><title>RE: random stimulus fixed by participant</title><link>https://forums.millisecond.com/Topic22804.aspx</link><description>&lt;div data-id="22801" class="if-quote-wrapper" unselectable="on" data-guid="1509730403189"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22801" 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="22801" 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="22801" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;charlottebooth - Friday, November 3, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22801"&gt;&lt;div class="if-quote-message-margin"&gt;Hey,&lt;br/&gt;&lt;br/&gt;I'm having trouble randomizing my stimulus set.&lt;br/&gt;&lt;br/&gt;Imagine you have three levels of reward (e.g. +£1, +£2, +£3) which are given according to different stimuli (e.g. square, circle, triangle) but you want to randomize this by participant so that e.g. participant 1 always has £1 for a square, but this is different for each participant. How would you go about this? Is there a type of selection that would work, or is there much more code involved that creates specific lists for each participant at the beginning of the experiment?&lt;br/&gt;&lt;br/&gt;&amp;lt;picture shapes&amp;gt;&lt;br/&gt;/erase = false&lt;br/&gt;/items = ("square.png", "circle.png", "triangle.png")&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/select = ???&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial reward1&amp;gt;&lt;br/&gt;/stimulustimes = [0 = pointstotal, shape]&lt;br/&gt;/trialduration = 3000&lt;br/&gt;/correctresponse = (lbuttondown)&lt;br/&gt;/validresponse = (noresponse)&lt;br/&gt;/validresponse = (lbuttondown)&lt;br/&gt;/ontrialend = [if (trial.reward.correct) values.pointstotal +=1;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22801"&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;Link a &amp;lt;list&amp;gt; containing three values to the &amp;lt;picture&amp;gt; element.&lt;br/&gt;&lt;br/&gt;&amp;lt;picture shapes&amp;gt;&lt;br/&gt;/erase = false&lt;br/&gt;/items = ("square.png", "circle.png", "triangle.png")&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/select = noreplace&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list rewards&amp;gt;&lt;br/&gt;/ items = (values.squarereward, values.circlereward, values.trianglereward)&lt;br/&gt;/ selectionmode = picture.shapes.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ squarereward = 0&lt;br/&gt;/ circlereward = 0&lt;br/&gt;/ trianglereward = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;Set the three values randomly to either 1, 2 or 3 /onexptbegin&lt;br/&gt;&lt;br/&gt;&amp;lt;list rewardamounts&amp;gt;&lt;br/&gt;/ items = (1,2,3)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ onexptbegin = [values.squarereward = list.rewardamounts.nextvalue; values.circlereward = list.rewardamounts.nextvalue; values.trianglereward = list.rewardamounts.nextvalue; ]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Then, in your &amp;lt;trial&amp;gt; you simply do:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial reward1&amp;gt;&lt;br/&gt;/stimulustimes = [0 = pointstotal, shape]&lt;br/&gt;/trialduration = 3000&lt;br/&gt;/correctresponse = (lbuttondown)&lt;br/&gt;/validresponse = (noresponse)&lt;br/&gt;/validresponse = (lbuttondown)&lt;br/&gt;/ontrialend = [if (trial.reward.correct) values.pointstotal +=list.rewards.nextvalue;]&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Fri, 03 Nov 2017 10:39:24 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>