<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I set up a unique random number in Survey123?   in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801646#M10945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe - I guess I just don't really know how random a Global ID is.&amp;nbsp; I know they are unique - but if you use that number and sort ascending or descending, assuming it to be random - Is it truly random?&amp;nbsp; Would a person receive preferential ranking if they submitted their survey first, or last?&amp;nbsp; I don't really know.&amp;nbsp; It seems that I have read that they are not random...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2019 19:20:20 GMT</pubDate>
    <dc:creator>KenMorefield</dc:creator>
    <dc:date>2019-02-27T19:20:20Z</dc:date>
    <item>
      <title>How can I set up a unique random number in Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801644#M10943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want people to submit a survey, which has a unique, random number that is hidden to the end user.&amp;nbsp; This number will be used as part of a "lottery" drawing, once all surveys have been submitted.&amp;nbsp; The unique, random number will be sorted low to high, and the lowest 10 numbers will be winners.&amp;nbsp; I envision my staff running a manual sort of the number in a web map, and then manually keying in a Selected = YES to the lowest 10 numbers.&amp;nbsp; Any ideas how to do this?&amp;nbsp; I know Global ID's are unique, but not necessarily random.&amp;nbsp; I'm trying to make is as simple as possible for non-technical staff to run.&amp;nbsp; I'd like to avoid ArcMap and ArcPro if possible - and do everything in ArcGIS Online, Survey123, web maps, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 18:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801644#M10943</guid>
      <dc:creator>KenMorefield</dc:creator>
      <dc:date>2019-02-27T18:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set up a unique random number in Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801645#M10944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How much more random&amp;nbsp;can a Global ID get?&amp;nbsp; You could look at a GUID field.&amp;nbsp; I've used the procedure described here&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000011677" title="https://support.esri.com/en/technical-article/000011677"&gt;How To: Calculate unique identifier values similar to Global IDs&lt;/A&gt;&amp;nbsp;but I couldn't tell you how to do that&amp;nbsp; in Survey 123.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 19:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801645#M10944</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-02-27T19:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set up a unique random number in Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801646#M10945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe - I guess I just don't really know how random a Global ID is.&amp;nbsp; I know they are unique - but if you use that number and sort ascending or descending, assuming it to be random - Is it truly random?&amp;nbsp; Would a person receive preferential ranking if they submitted their survey first, or last?&amp;nbsp; I don't really know.&amp;nbsp; It seems that I have read that they are not random...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 19:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801646#M10945</guid>
      <dc:creator>KenMorefield</dc:creator>
      <dc:date>2019-02-27T19:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set up a unique random number in Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801647#M10946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't believe there's any way to guarantee that it's unique (edit: without using a GlobalID, I mean).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many responses do you expect to have? You could try using&amp;nbsp;&lt;STRONG&gt;random()&lt;/STRONG&gt; in a calculation. This returns a value between 0 (inclusive) and 1 (exclusive). For a more "friendly" number you can multiply it by a value and round it off, for example &lt;STRONG&gt;round(random()*100000,0)&lt;/STRONG&gt; results in a range of 0 to 100,000. You could then use another random() function in a second question to be used as a tie-breaker, because hopefully no one will end up with the same random lotto number &lt;EM&gt;and&lt;/EM&gt; identical tie-breaker numbers, but who knows? Or maybe even use a timestamp as a tie-breaker?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 19:21:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801647#M10946</guid>
      <dc:creator>NickDierks1</dc:creator>
      <dc:date>2019-02-27T19:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set up a unique random number in Survey123? </title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801648#M10947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a screen shot of 30 out of 3341 GlobalIDs sorted in ascending order:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/438304_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&lt;A class="link-titled" href="https://whatis.techtarget.com/definition/random-numbers" title="https://whatis.techtarget.com/definition/random-numbers"&gt;What is random numbers? - Definition from WhatIs.com&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="background-color: #ffffff; color: #6c6c6c; font-size: 17px; "&gt;Random numbers are numbers that occur in a sequence such that two conditions are met: (1) the values are uniformly distributed over a defined interval or set, and (2) it is impossible to predict future values based on past or present ones. Random numbers are important in statistical analysis and probability theory&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;Do they meet the two criteria?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 19:34:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801648#M10947</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-02-27T19:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set up a unique random number in Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801649#M10948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for chiming in Nick.&amp;nbsp; Realistically, there will probably be fewer than 100 survey entries.&amp;nbsp; So maybe I'm overthinking the chances of having to random numbers come out the same.&amp;nbsp; Using your rounding and/or a tiebreaker field would probably insure that I never have a problem (with so few entries).&amp;nbsp; I'll try a few approaches and see what I find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 19:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801649#M10948</guid>
      <dc:creator>KenMorefield</dc:creator>
      <dc:date>2019-02-27T19:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set up a unique random number in Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801650#M10949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this blog post also:&amp;nbsp;&lt;A href="https://community.esri.com/groups/survey123/blog/2017/11/25/creating-ticket-numbers-in-survey123-for-arcgis"&gt;https://community.esri.com/groups/survey123/blog/2017/11/25/creating-ticket-numbers-in-survey123-for-arcgis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 01:23:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-set-up-a-unique-random-number-in/m-p/801650#M10949</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-02-28T01:23:08Z</dc:date>
    </item>
  </channel>
</rss>

