Class UniformIntegerRV

All Implemented Interfaces:
Cloneable, RandomVariableOps<Integer>

public class UniformIntegerRV extends IntegerRandomVariable
Random variable that generates a int with uniform probability over a range of values.
  • Constructor Details

    • UniformIntegerRV

      public UniformIntegerRV(int lowerLimit, int upperLimit)
      Constructor. The values produced are in the range [lowerLimit, upperLimit).
      Parameters:
      lowerLimit - the lower limit of the values produced
      upperLimit - the upper limit of the values produced
    • UniformIntegerRV

      public UniformIntegerRV(int lowerLimit, boolean lowerClosed, int upperLimit, boolean upperClosed)
      Constructor specifying range type (open, closed, etc.).
      Parameters:
      lowerLimit - the lower limit of the values produced
      lowerClosed - true if the lower limit is included in the range of values produced; false otherwise
      upperLimit - the upper limit of the values produced
      upperClosed - true if the upper limit is included in the range of values produced; false otherwise
  • Method Details