<?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: Rnd column in attribute table, strange behaviour in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302398#M23495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't necessarily describe it as a bug or a problem.&amp;nbsp; It's pretty common to not use reserved words as a practice and a good habit to get into.&amp;nbsp; In rare cases where I needed to name a field close to a reserved word then I'd just add an underscore "_" in front of the name.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 12:33:23 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2015-03-31T12:33:23Z</dc:date>
    <item>
      <title>Rnd column in attribute table, strange behaviour</title>
      <link>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302391#M23488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This whole thing started when I wanted to make a random number column and populate it in an attribute table.&lt;/P&gt;&lt;P&gt;I added a column to the table called "Rnd" (type double).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Rnd_FieldProperties.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/80108_Rnd_FieldProperties.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Then I opened the field calculator to populate this with a random number. But then I noticed that it was already populated with a number, all the same.&lt;/P&gt;&lt;P&gt;Even when I calculated the field to any number (in this case 2), a different random float would appear.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Rnd_CalcField.jpg" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/80109_Rnd_CalcField.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Even opening the table would generate another.&lt;/P&gt;&lt;P&gt;Strangely, after the calc above, I closed ArcMap, and opened the table in Access (this is in a personal geodb), the contents = 2.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Rnd_Random1.jpg" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/80110_Rnd_Random1.jpg" style="height: auto;" /&gt;&lt;IMG alt="Rnd_Random2.jpg" class="image-4 jive-image" src="https://community.esri.com/legacyfs/online/80111_Rnd_Random2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Is this behavior, for a field called "Rnd" documented anywhere?&lt;/P&gt;&lt;P&gt;And, just in case I am totally loosing it, can someone confirm that this happens on another system.&lt;/P&gt;&lt;P&gt;My version 10.2.2.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 10:13:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302391#M23488</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-03-30T10:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rnd column in attribute table, strange behaviour</title>
      <link>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302392#M23489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps a 64-bit issue? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not 100% sure on this, but maybe research the future of the Personal GDB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 13:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302392#M23489</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2015-03-30T13:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rnd column in attribute table, strange behaviour</title>
      <link>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302393#M23490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm on 10.2.2 and just tested this with a new Personal GDB and did not have the same issue. The Rnd field was not automatically populated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:26:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302393#M23490</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-03-30T17:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rnd column in attribute table, strange behaviour</title>
      <link>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302394#M23491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your OP you stated that this problem occurred with the PGDB:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt; I closed ArcMap, and opened the table in Access (this is in a personal geodb)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was commenting that since Access is a 32-bit application, perhaps the problems are associated with ArcGIS accessing that application.&amp;nbsp; I don't have a definitive solution or even if that is your problem, it was just a comment to perhaps check into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would definitely be concerned with implementing PGDB's though and consider the future of that technology.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:48:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302394#M23491</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2015-03-30T17:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rnd column in attribute table, strange behaviour</title>
      <link>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302395#M23492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do see the same behaviour with Rnd as field name (v10.2.2). It appears to be a problem (bug or feature?) with using an unhandled VBScript (or VBA possibly) function as a field name. I see similar behaviour using Now as a string field name: the Now() function returns a string of the current date/time. The Now() function appears to be called every time field calculator is opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some field names are reserved, like "Date", which indicates some VB functions have been handled, but not all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302395#M23492</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-03-30T17:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rnd column in attribute table, strange behaviour</title>
      <link>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302396#M23493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren, thanks for confirming this and for providing a possible explanation.&lt;/P&gt;&lt;P&gt;Will try a "Now" attribute as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 05:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302396#M23493</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-03-31T05:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rnd column in attribute table, strange behaviour</title>
      <link>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302397#M23494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren is absolutely spot on.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="VbFunctionsAsFieldNames.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/80459_VbFunctionsAsFieldNames.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;A field named Now (as a date) has the same result. Automatically populated...&lt;/P&gt;&lt;P&gt;The only question is...&lt;/P&gt;&lt;P&gt;Is this an undocumented feature or an undocumented bug. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 06:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302397#M23494</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-03-31T06:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rnd column in attribute table, strange behaviour</title>
      <link>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302398#M23495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't necessarily describe it as a bug or a problem.&amp;nbsp; It's pretty common to not use reserved words as a practice and a good habit to get into.&amp;nbsp; In rare cases where I needed to name a field close to a reserved word then I'd just add an underscore "_" in front of the name.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 12:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rnd-column-in-attribute-table-strange-behaviour/m-p/302398#M23495</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2015-03-31T12:33:23Z</dc:date>
    </item>
  </channel>
</rss>

