Skip to main content

RandomNumberGenerator

サマリー

The RandomNumberGenerator class determines the type and seed that will be used to create random numbers.

ディスカッション

レガシー:

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.

方法

exportToString()

Exports the object to its string representation.

戻り値

データ タイプ 説明

String

The string representation of the object.

loadFromString(string)

Defines a RandomNumberGenerator object from a formatted string.

名前 説明 データ タイプ

string

The string representation of the object.

A space-delimited string of the seed and random generator algorithm. For example, 0 ACM599.

  • ACM599—ACM collected algorithm 599

  • MERSENNE_TWISTER—Mersenne Twister mt19937

  • STANDARD_C—Standard C Rand

String