Select to view content in your preferred language

Specify the value of RandomSeed in the CGA

195
2
3 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
2 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