RANDOM Process

To access this process:

See this process in the Command Table.

Process Overview

Generate random numbers. RANDOM is similar to (and supersedes) the legacy MONACO process.

The type of random distribution is primarily dictated by DISTRIB. Each option supports either one or two parameters (P1 and P2).

  • 1—Produce random numbers using a uniform distribution with minimum P1 and maximum P2.

  • 2—Produce random numbers using an exponential distribution with rate P1.

  • 3—Produce random numbers using a normal distribution with mean P1 and standard deviation P2.

  • 4—Produce random numbers using a Laplacian distribution with location P1 and scale parameter P2.

  • 5—Produce random numbers using a Weibull distribution with shape parameter P1 and scale parameter P2.

  • 6— Produce random numbers using a Cauchy distribution with location P1 and scale parameter P2.

  • 7—Produce random numbers using a lognormal distribution with log mean P1 and log standard deviation P2.

Note: you can also generate random numbers using the EXTRA process.

Input Files

Output Files

Name

Description

I/O Status

Required

Type

OUT

Output file containing random values.

Output

Yes

Table

Fields

Name

Description

Source

Required

Type

Default

OUTFIELD

Field to write the random variables into.

IN

No

Any

Undefined

Parameters

Name

Description

Required

Default

Range

Values

NRECS

Number of records required in output file

Yes

1

Undefined

Undefined
DISTRIB Type of distribution to use to generate random numbers. See "Distribution Options" above. Yes 1 1,7 1,2,3,4,5,6,7
P1 First parameter of the chosen distribution. Yes 0

Undefined

Undefined
P2 Second parameter of the chosen distribution. Ignored if DISTRIB=2. No 1

Undefined

Undefined
SEED Random number seed. If the same non-zero seed is used for multiple runs then the same set of random numbers will be generated. If SEED is zero, subsequent results with the same parameters will differ. No 0

Undefined

Undefined

Related topics and activities