Class UniformLongRV

All Implemented Interfaces:
Cloneable, RandomVariableOps<Long>

public class UniformLongRV extends LongRandomVariable
Random variable that generates a long with uniform probability over a range of values.
  • Constructor Details

    • UniformLongRV

      public UniformLongRV(long lowerLimit, long 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
    • UniformLongRV

      public UniformLongRV(long lowerLimit, boolean lowerClosed, long 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