ArcGIS Pro - Generate Random Number in Python and Arcade

preview_player
Показать описание
Video #95
In this video I demonstrate how to use Arcade script and python to create a random number.
- Add Field is used to create a new empty field
- The Field Calculator is then used to generate the random number, first with Arcade and then with python 3

With Arcade you use: random()*500 - for random values up to 500

And this video has more on generating random values (using strings):

Рекомендации по теме
Комментарии
Автор

This was a great help! Thanks! (subscribed)

GeoGlover
Автор

This method assigns random number with replacement. How would you assign random numbers without replacement?

rachlrubin
Автор

Congratulations on the video. What if we wanted to populate the field with increasing values? Can you please show how to do it? Thank you

Giu