RandomNumberGenerator

Summary

Determines the type and seed that will be used to create random numbers.

Discussion

Legacy:

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.

Method Overview

MethodExplanation
exportToString ()

Exports the object to its string representation.

loadFromString (string)

Restore the object using its string representation. The exportToString method can be used to create a string representation.

Methods

exportToString ()
Return Value
Data TypeExplanation
String

The string representation of the object.

loadFromString (string)
ParameterExplanationData Type
string

The string representation of the object.

String

Related topics