Random Number (Range) VI

Owning Palette: Numeric VIs and Functions

Requires: Base Development System

Generates a random value from a specified range. Wire data to the upper bound or lower bound input to determine the polymorphic instance to use or manually select the instance.

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Random Number (Range) (U64)

upper bound specifies the upper limit of the range. The default is 100.
lower bound specifies the lower limit of the range. The default is 0.
number returns a random number greater than or equal to lower bound and less than or equal to upper bound.

If upper bound is less than or equal to lower bound, this output returns lower bound.

Random Number (Range) (I64)

upper bound specifies the upper limit of the range. The default is 100.
lower bound specifies the lower limit of the range. The default is -100.
number returns a random number greater than or equal to lower bound and less than or equal to upper bound.

If upper bound is less than or equal to lower bound, this output returns lower bound.

Random Number (Range) (DBL)

upper bound specifies the upper limit of the range. The default is 100.
lower bound specifies the lower limit of the range. The default is 0.
number returns a random number greater than or equal to lower bound and less than upper bound.

If upper bound is less than or equal to lower bound, this output returns lower bound.