Select to view content in your preferred language

Specify the value of RandomSeed in the CGA

233
4
4 weeks ago
Labels (1)
biaozeng
Regular Contributor

I hope to specify the value of RandomSeed in the cga. I have tried to assign values to seedian and rand, but found that neither of them can cover the global random value.企业微信截图_20250815105631.png企业微信截图_20250815105538.png

0 Kudos
4 Replies
biaozeng
Regular Contributor

I created fixed random values for each shape within the region. I hope to use these values to overwrite RandomSeed to maintain their consistency.企业微信截图_17552271485496.png

0 Kudos
JonasObertuefer
Esri Contributor

Hi @biaozeng,

you can set and read the Random Seed in CGA using the seedian shape attribute

print(seedian)
set(seedian, 2137)
print(seedian)

Please note: The seedian is equal to the Random Seed up to certain value, negative and very high positives Random Seed values are mapped to the allowed range in CGA.

Hope this helps.

Best,
Jonas

 

 

0 Kudos
biaozeng
Regular Contributor

企业微信截图_20250904105630.pngIt cannot change this value.

0 Kudos
JonasObertuefer
Esri Contributor

You can't change any inspector values including the Random Seed from CGA. If you you wish to set it to a certain value you can do it in the Inspector by editing the value in the input field directly or you use python with ce.setSeed()

0 Kudos