﻿<?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 3  » Random number generator</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 01 May 2026 11:36:15 GMT</lastBuildDate><ttl>20</ttl><item><title>Random number generator</title><link>https://forums.millisecond.com/Topic14761.aspx</link><description>Hi again,&lt;br/&gt;&lt;br/&gt;Does Inquisit have a simple random number generator?&lt;br/&gt;&lt;br/&gt;I'm wanting to connect my inquisit script to MTurk, and to verify that participants have completed the task, I want to generate and display a random number within a set range (eg: higher than 160,000 and lower than 165,000) at the final inquisit page. Participants will then need to input this number into Mturk, allowing me to verify that they completed the task if the number is within the specified range.&lt;br/&gt;&lt;br/&gt;Thanks in advance,&lt;br/&gt;paul</description><pubDate>Thu, 30 Oct 2014 17:23:39 GMT</pubDate><dc:creator>paughl</dc:creator></item><item><title>RE: Random number generator</title><link>https://forums.millisecond.com/Topic14779.aspx</link><description>Thanks a bunch Dave. Champ!</description><pubDate>Thu, 30 Oct 2014 17:23:39 GMT</pubDate><dc:creator>paughl</dc:creator></item><item><title>RE: Random number generator</title><link>https://forums.millisecond.com/Topic14766.aspx</link><description>Yes, Inquisit has a rand() function (and others) you can use to do this easily. See the functions reference for details.&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ myvalue = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.myvalue = floor(rand(160001,165000))]&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("Your random code: &amp;lt;%values.myvalue%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 30 Oct 2014 03:52:15 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Random number generator</title><link>https://forums.millisecond.com/Topic14763.aspx</link><description>Thanks for your response Mike. No, just using Inquisit.</description><pubDate>Wed, 29 Oct 2014 22:11:35 GMT</pubDate><dc:creator>paughl</dc:creator></item><item><title>RE: Random number generator</title><link>https://forums.millisecond.com/Topic14762.aspx</link><description>Hi Paul,&lt;br/&gt;I did this by combining the Inquisit survey with a Qualtrics survey.&amp;nbsp; You may be able to do this purely in Inqusit alone but I don't know how.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;I set up a Qualtrics survey to provide participants with an information and consent page, asked them a few demographic questions, randomly assigned them to some experimental groups and then redirected them to the Inquisit link to do the Age IAT (the dependent variable in my study). After completing the IAT they were redirected back to Qualtrics which used an embedded web service element to generate random confirmation codes that participants then enter in to MTURK to confirm their participation.&lt;br/&gt;&lt;br/&gt;Are you using any other survey provider, or just Inquisit?&lt;br/&gt;Mike&lt;br/&gt;</description><pubDate>Wed, 29 Oct 2014 22:05:02 GMT</pubDate><dc:creator>maf1974</dc:creator></item></channel></rss>