RandomNumberGenerator methods syntax

From m204wiki
Jump to navigation Jump to search

The syntax for each of the RandomNumberGenerator class methods is shown below.

Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of RandomNumberGenerator methods.

%outRandomNumberGenerator = randomNumberGenerator:Copy

%outRandomNumberGenerator = randomNumberGenerator:DeepCopy

%randomNumberGenerator = [%(RandomNumberGenerator):]New[( [Seed= string], - [Salt= string])]

randomNumberGenerator:UpdateSeed[( [Seed= string], [Salt= string])]

%number = randomNumberGenerator:Value[( [min], [max])]