HOW TO
In ArcGIS Pro, a random number within a range can be generated using Arcade expressions to label each feature on the map. This allows for a better visualization of the random classification on a map when performing predictive analysis.
This article provides an example and instructions using Arcade expressions to generate a random number within a range for labels in ArcGIS Pro.In this article's example, the TampaBuildings layer contains polygon features of buildings in Tampa.
The image below shows a map in ArcGIS Pro without random numbers on the polygon features.
Round(Random() * (<valueDigit1> - <valueDigit2>) + <valueDigit2> , <numberOfDecimal>)
Round(Random() * (0 - 50) + 50 , 0)
The image below displays the map with random numbers on the polygon features.
Get help from ArcGIS experts
Download the Esri Support App