RandomNumberGenerator.IntegerUniformDistribution(Variable, Variable) Method

Top 

Description

Returns a random integer 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.IntegerUniformDistribution(

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 the minimum.

 

 

 

Return Value

Type:

number

 

 

The number generated by the random number generator.

 

Syntax

myVariable1 = myRandomNumberGenerator1.IntegerUniformDistribution(myVariable2, myVariable3);

 

 

See also

RandomNumberGenerator Object