CreateRandomValueGenerator

サマリー

The CreateRandomValueGenerator function creates a random number generator.

説明

レガシー:

arcgis.rand() は、ArcGIS Pro 2.0 以降サポートされなくなりました。arcgis.rand() 関数は、[値の計算 (Calculate Value)] および [フィールドの計算 (Calculate Field)] ツール、[乱数ジェネレーター] 環境設定、CreateRandomValueGenerator 関数を使用したランダム値の作成を中心に使われてきました。代わりに、Python の random モジュールを使用する、同等の関数を使用する必要があります。

構文

CreateRandomValueGenerator (seed, distribution)
パラメーター説明データ タイプ
seed

Initializes the random number generator.

Integer
distribution

Specifies the random generation algorithm that will be used.

  • ACM599The ACM collected algorithm 599 will be used.
  • MERSENNE_TWISTERThe Mersenne Twister mt19937 algorithm will be used.
  • STANDARD_CThe Standard C Rand algorithm will be used.

(デフォルト値は次のとおりです ACM599)

String
戻り値
データ タイプ説明
Object

A RandomNumberGenerator object.

関連トピック