RandomNumberGenerator.TriangleDistribution(Variable, Variable, Variable) Method

Top 

Description

Returns a random number based on a continuous probability distribution defined on the range using the probability density and distribution functions.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

RandomNumberGenerator.TriangleDistribution(

Variable lowerLimit,


Variable upperLimit,


Variable mode)

 

 

Arguments

lowerLimit


Description:

The lower limit that defines the beginning of the range.

 

 

upperLimit


Description:

The upper limit that defines the end of the range.

 

 

mode


Description:

The mode of the distribution function.

 

 

 

Return Value

Type:

number

 

 

The number generated by the random number generator.

 

Syntax

myVariable1 = myRandomNumberGenerator1.TriangleDistribution(myVariable2, myVariable3, myVariable4);

 

 

See also

RandomNumberGenerator Object