public RandomFilter(final double minimumValue,final double maximumValue){
  if (minimumValue > maximumValue) {
    throw new IllegalArgumentException("maximumValue must be >= minimumValue");
  }
  this.minimumValue=minimumValue;
  this.maximumValue=maximumValue;
  difference=Math.abs(this.maximumValue - this.minimumValue);
  random=new Random();
}

public RandomFilter ( final double minimumValue , final double maximumValue ) { if ( minimumValue > maximumValue ) { throw new IllegalArgumentException ( "maximumValue must be >= minimumValue" ) ; } this . minimumValue = minimumValue ; this . maximumValue = maximumValue ; difference = Math . abs ( this . maximumValue - this . minimumValue ) ; random = new Random ( ) ; }
create a new random filter with the specified minimum and maximum values .
