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 nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond 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