rows = arcpy.SearchCursor(InputToSample) for row in rows: fidVal = row.getValue(FieldName) fidList.append(fidVal) #make a random selection rndList = random.sample(fidList, numSample)
timeInt = int(str(int(time.time() * 10000))[-5:]) random.jumpahead(timeInt)
" OR ".join(["'{0}' = {1}".format(oid_fname,x) for x in random_fids])
"'{0}' IN ({1})".format(oid_fname,",".join(random_fids))
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.