RandomNumberGenerator.UniformDistribution(Variable, Variable) Method

Top 

Description

Returns a random number that is uniformly distributed over the specified range [min, max).

 

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.UniformDistribution(

Variable min,


Variable max)

 

 

Arguments

min


Description:

The minimum value that defines the beginning of the range.

 

 

max


Description:

The maximum value that defines the end of the range; must be greater than and not equal to the minimum.

 

 

 

Return Value

Type:

number

 

 

The number generated by the random number generator.

 

Syntax

myVariable1 = myRandomNumberGenerator1.UniformDistribution(myVariable2, myVariable3);

 

 

See also

RandomNumberGenerator Object