﻿<?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 4  » Issues Generating Unique Random SubjectIDs on 4.0.9</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 07 Apr 2026 22:43:43 GMT</lastBuildDate><ttl>20</ttl><item><title>Issues Generating Unique Random SubjectIDs on 4.0.9</title><link>https://forums.millisecond.com/Topic20299.aspx</link><description>&lt;strong&gt;Our mission:&lt;/strong&gt; We are currently attempting participants, after completing an Inquisit task, to Qualtrics, and have these participants' responses be linked. We want to have Inquisit generate a unique and random subjectID, insert it into the URL that links it to qualtrics (i.e. www.qualtrics.com/xxxxxyyyyzzzz&amp;amp;subjectID=9876, 9876 beign the randomly generated ID), and have qualtrics record that subjectID so that we can keep the responses together.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;We have tried this:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;h3 style="box-sizing: border-box; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); margin-top: 20px; margin-bottom: 10px; font-size: 24px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;Sending the Subject ID from Inquisit to 3rd Party Sites&lt;/h3&gt;&lt;p&gt;If participants start with the Inquisit session before going to the 3rd party survey site, the subject id can be explicitly included on the finish page url so that it can be used by the 3rd party site. Using the above example, the following finish page would include the unique subject id for each participant:&lt;/p&gt;&lt;pre style="box-sizing: border-box; overflow: auto; font-family: &amp;quot;Lucida Console&amp;quot;, Monaco, monospace; font-size: 11pt; display: block; padding: 9.5px; margin: 0px 0px 10px; line-height: 1.42857; color: rgb(0, 0, 128); word-break: break-all; word-wrap: break-word; background-color: rgb(250, 250, 250); border: 1px solid rgb(204, 204, 204); border-radius: 4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&amp;nbsp;&amp;nbsp; &lt;a href="http://www.surveysrus.com/coolsurvey/part2.html?subjectid=&amp;lt;%script.subjectid%&amp;gt;"&gt;http://www.surveysrus.com/coolsurvey/part2.html?subjectid=&amp;lt;%script.subjectid%&amp;gt;&lt;/a&gt;&lt;/pre&gt;&lt;p&gt;Add the end of each session, Inquisit will substitute "&amp;lt;%script.subjectid%&amp;gt;" with the actual ids for each of the subjects.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Complications:&lt;/strong&gt; But, it hasn't worked for us -- Qualtrics doesn't recognize the generated %script.subjectid% and Inquisit isn't replacing the scripting with a number. It gives us a constant ("25").&lt;br/&gt;&lt;br/&gt;The other way that we've tried, which is just specifying subjectID is a url parameter, sets subjectID as 111111 every time, rather than assigning it randomly and uniquely.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Our question:&lt;/strong&gt; how do we successfully get Inquisit to generate a unique URL either using this "&amp;lt;%script.subjectid%&amp;gt;", and/or are there any other methods that we can use? We were thinking of programming in a random number generator BUT we would have no assurance that each random number generated would produce a unique subject ID (i.e. the same number could be generated twice).&lt;/p&gt;&lt;br/&gt;</description><pubDate>Tue, 29 Nov 2016 12:29:30 GMT</pubDate><dc:creator>CAlicia</dc:creator></item><item><title>RE: Issues Generating Unique Random SubjectIDs on 4.0.9</title><link>https://forums.millisecond.com/Topic20301.aspx</link><description>Dave, thanks so much-- that looks like it'll resolve the issue!</description><pubDate>Tue, 29 Nov 2016 12:29:30 GMT</pubDate><dc:creator>CAlicia</dc:creator></item><item><title>RE: Issues Generating Unique Random SubjectIDs on 4.0.9</title><link>https://forums.millisecond.com/Topic20300.aspx</link><description>&lt;div data-id="20299" class="if-quote-wrapper" unselectable="on" data-guid="1480448606816"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20299" 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="20299" 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="20299" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;CAlicia - Tuesday, November 29, 2016&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20299"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;strong&gt;Our mission:&lt;/strong&gt; We are currently attempting participants, after completing an Inquisit task, to Qualtrics, and have these participants' responses be linked. We want to have Inquisit generate a unique and random subjectID, insert it into the URL that links it to qualtrics (i.e. www.qualtrics.com/xxxxxyyyyzzzz&amp;amp;subjectID=9876, 9876 beign the randomly generated ID), and have qualtrics record that subjectID so that we can keep the responses together.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;We have tried this:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;h3 style="box-sizing: border-box; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); margin-top: 20px; margin-bottom: 10px; font-size: 24px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;Sending the Subject ID from Inquisit to 3rd Party Sites&lt;/h3&gt;&lt;p&gt;If participants start with the Inquisit session before going to the 3rd party survey site, the subject id can be explicitly included on the finish page url so that it can be used by the 3rd party site. Using the above example, the following finish page would include the unique subject id for each participant:&lt;/p&gt;&lt;pre style="box-sizing: border-box; overflow: auto; font-family: &amp;quot;Lucida Console&amp;quot;, Monaco, monospace; font-size: 11pt; display: block; padding: 9.5px; margin: 0px 0px 10px; line-height: 1.42857; color: rgb(0, 0, 128); word-break: break-all; word-wrap: break-word; background-color: rgb(250, 250, 250); border: 1px solid rgb(204, 204, 204); border-radius: 4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&amp;nbsp;&amp;nbsp; &lt;a href="&lt;a href="http://www.surveysrus.com/coolsurvey/part2.html?subjectid="&gt;http://www.surveysrus.com/coolsurvey/part2.html?subjectid=&lt;/a&gt;&lt;%script.subjectid%&gt;"&gt;&lt;a href="http://www.surveysrus.com/coolsurvey/part2.html?subjectid=&amp;lt;%script.subjectid%&amp;gt;"&gt;http://www.surveysrus.com/coolsurvey/part2.html?subjectid=&amp;lt;%script.subjectid%&amp;gt;&lt;/a&gt;&lt;/a&gt;&lt;/pre&gt;&lt;p&gt;Add the end of each session, Inquisit will substitute "&amp;lt;%script.subjectid%&amp;gt;" with the actual ids for each of the subjects.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Complications:&lt;/strong&gt; But, it hasn't worked for us -- Qualtrics doesn't recognize the generated %script.subjectid% and Inquisit isn't replacing the scripting with a number. It gives us a constant ("25").&lt;br/&gt;&lt;br/&gt;The other way that we've tried, which is just specifying subjectID is a url parameter, sets subjectID as 111111 every time, rather than assigning it randomly and uniquely.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Our question:&lt;/strong&gt; how do we successfully get Inquisit to generate a unique URL either using this "&amp;lt;%script.subjectid%&amp;gt;", and/or are there any other methods that we can use? We were thinking of programming in a random number generator BUT we would have no assurance that each random number generated would produce a unique subject ID (i.e. the same number could be generated twice).&lt;/p&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20299"&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;&amp;gt; &lt;strong&gt;Complications:&lt;/strong&gt; But, it hasn't worked for us -- Qualtrics doesn't recognize the generated %script.subjectid% and Inquisit isn't replacing the scripting with a number. It gives &lt;br/&gt;&amp;gt; us a constant ("25").&lt;br/&gt;&lt;br/&gt;If you set up your launch page to generate a random subject id via its settings, that ID is generated when you initially visit the launch page in your browser. To generate a new ID, refresh / reload the launch page in your browser.&lt;br/&gt;</description><pubDate>Tue, 29 Nov 2016 11:45:06 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>