<?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: Select Random Subset of Address Data - ArcGIS Pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/select-random-subset-of-address-data-arcgis-pro/m-p/1066453#M41807</link>
    <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field-examples.htm#ESRI_SECTION1_E240EA484E2A459582E56871DD0BB862" target="_blank"&gt;Calculate Field Python examples—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do a field calculation, setting your distribution to Uniform&lt;/P&gt;&lt;P&gt;Emulate the syntax from the help topic, but replace random.random with random.uniform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import numpy as np
def getRandomValue():
    return np.random.uniform()&lt;/LI-CODE&gt;&lt;P&gt;Each value (defaults to between 0 and 1) has an equal chance of being drawn.&lt;/P&gt;&lt;P&gt;When you have calculated the whole field, simply do a query on that field querying for values &amp;lt; 0.2&lt;/P&gt;&lt;P&gt;That will pull 20% of the samples.&lt;/P&gt;&lt;P&gt;Alternately you can mess with &amp;gt; 0.8 or any other 20% range you like&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 16:17:12 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-06-09T16:17:12Z</dc:date>
    <item>
      <title>Select Random Subset of Address Data - ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-random-subset-of-address-data-arcgis-pro/m-p/1066421#M41804</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I am working on a project with a department that is undertaking an extensive survey of residential properties throughout the city. The department would like to have a random selection of addresses to survey. They are looking for approximately 20% of randomly selected residential addresses within each defined area (still a debate on the bias of using neighborhoods or a fishnet/grid/tessellation for the defined area)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this in ArcGIS Pro 2.7.3 with an Advanced license? or is there a AGOL widget??&lt;/P&gt;&lt;P&gt;1) I do not have the geostatiscial analyst or data reviewer extensions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I have tried to do a random number generator using the script example in&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/random-number-generator.htm" target="_blank" rel="noopener"&gt;Random Number Generator (Environment setting)—ArcGIS Pro | Documentation&amp;nbsp;&lt;/A&gt;I have yet to successfully make this work. Any tips or tricks to share?&lt;/P&gt;&lt;P&gt;3) I know how to create random numbers in Excel and join them to a table. Trying to avoid using excel so that I can possible automate a model and publish a geoprocessing service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance would be appreciated. Thank you for your kind assistance!&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jessica&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:28:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-random-subset-of-address-data-arcgis-pro/m-p/1066421#M41804</guid>
      <dc:creator>JessicaJThompson</dc:creator>
      <dc:date>2021-06-09T15:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select Random Subset of Address Data - ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-random-subset-of-address-data-arcgis-pro/m-p/1066453#M41807</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field-examples.htm#ESRI_SECTION1_E240EA484E2A459582E56871DD0BB862" target="_blank"&gt;Calculate Field Python examples—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do a field calculation, setting your distribution to Uniform&lt;/P&gt;&lt;P&gt;Emulate the syntax from the help topic, but replace random.random with random.uniform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import numpy as np
def getRandomValue():
    return np.random.uniform()&lt;/LI-CODE&gt;&lt;P&gt;Each value (defaults to between 0 and 1) has an equal chance of being drawn.&lt;/P&gt;&lt;P&gt;When you have calculated the whole field, simply do a query on that field querying for values &amp;lt; 0.2&lt;/P&gt;&lt;P&gt;That will pull 20% of the samples.&lt;/P&gt;&lt;P&gt;Alternately you can mess with &amp;gt; 0.8 or any other 20% range you like&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 16:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-random-subset-of-address-data-arcgis-pro/m-p/1066453#M41807</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-06-09T16:17:12Z</dc:date>
    </item>
  </channel>
</rss>

