﻿<?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  » randomizing which stimuli appear during a block</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 25 Aug 2026 22:50:29 GMT</lastBuildDate><ttl>20</ttl><item><title>randomizing which stimuli appear during a block</title><link>https://forums.millisecond.com/Topic35519.aspx</link><description>Hi,&lt;br/&gt;I have 8 sets of pictures, and I want each of them to appear randomly in each of 8 blocks (no replacement). I did something like this (note: code not exact, because I am not currently able to access the script), but it doesn't seem to be working. Would you be able to advise?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimuli&amp;gt;&lt;br/&gt;/items = (picture.1, picture.2. picture.3., picture.4, picture.5, picture.6, picture.7, picture.8)&lt;br/&gt;/selectionrate = block&lt;br/&gt;/replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block test&amp;gt;&lt;br/&gt;/trials = [1=trial, 2 = trial2]&lt;br/&gt;/bgstim = stimulus1, stimulus2, stimulus3, list.stimuli&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;I know the above isn't quite right, but what I'm trying to do is include a randomly selected picture from the list as background stimuli within that block. I'm also trying to make sure that no picture appears more than once across 8 different blocks.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 07 Jul 2023 12:14:27 GMT</pubDate><dc:creator>nc</dc:creator></item><item><title>RE: randomizing which stimuli appear during a block</title><link>https://forums.millisecond.com/Topic35520.aspx</link><description>&lt;blockquote data-id="35519" class="if-quote-wrapper" unselectable="on" data-guid="1688731580072" id="if_insertedNode_1688731579285" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35519" 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="35519" 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="35519" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nc - 7/7/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35519"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;I have 8 sets of pictures, and I want each of them to appear randomly in each of 8 blocks (no replacement). I did something like this (note: code not exact, because I am not currently able to access the script), but it doesn't seem to be working. Would you be able to advise?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimuli&amp;gt;&lt;br/&gt;/items = (picture.1, picture.2. picture.3., picture.4, picture.5, picture.6, picture.7, picture.8)&lt;br/&gt;/selectionrate = block&lt;br/&gt;/replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block test&amp;gt;&lt;br/&gt;/trials = [1=trial, 2 = trial2]&lt;br/&gt;/bgstim = stimulus1, stimulus2, stimulus3, list.stimuli&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;I know the above isn't quite right, but what I'm trying to do is include a randomly selected picture from the list as background stimuli within that block. I'm also trying to make sure that no picture appears more than once across 8 different blocks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35519"&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 don't want a list. You want a &amp;lt;picture&amp;gt; element with eight items, set to random selection without replacement and /selectionrate set to block. I.e.&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;picture bgpic&amp;gt;&lt;br/&gt;/ items = bgpicitems&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ selectionrate = block&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item bgpicitems&amp;gt;&lt;br/&gt;/ 1 = "01.jpg"&lt;br/&gt;/ 1 = "02.jpg"&lt;br/&gt;/ 1 = "03.jpg"&lt;br/&gt;/ 1 = "04.jpg"&lt;br/&gt;/ 1 = "05.jpg"&lt;br/&gt;/ 1 = "06.jpg"&lt;br/&gt;/ 1 = "07.jpg"&lt;br/&gt;/ 1 = "08.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block exampleblock&amp;gt;&lt;br/&gt;/ bgstim = (bgpic)&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-8 = exampleblock]&lt;br/&gt;&amp;lt;/expt&amp;gt;[/code]</description><pubDate>Fri, 07 Jul 2023 12:14:27 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>