Skip to main content

CreateRandomValueGenerator

サマリー

The CreateRandomValueGenerator function creates a random number generator.

ディスカッション

レガシー:

arcgis.rand() is no longer supported as of ArcGIS Pro 2.0. The arcgis.rand() function was primarily used to support creation of random values with the Calculate Value and Calculate Field tools, the Random Number Generator environment setting, and the CreateRandomValueGenerator function. Comparable functions using Python's random module should be used instead.

構文

CreateRandomValueGenerator(seed, distribution)

パラメーター 説明 データ タイプ

seed

Initializes the random number generator.

Integer

distribution

Specifies the random generation algorithm that will be used.

  • ACM599—The ACM collected algorithm 599 will be used.

  • MERSENNE_TWISTER—The Mersenne Twister mt19937 algorithm will be used.

  • STANDARD_C—The Standard C Rand algorithm will be used.

The default value is ACM599.

String

戻り値

データ タイプ 説明

Object

A RandomNumberGenerator object.