/** Sets the internal state. */
 public void setState(double min, double max) {
   if (max < min) {
     setState(max, min);
     return;
   }
   this.min = min;
   this.max = max;
 }
 /** Constructs a uniform distribution with the given minimum and maximum. */
 public Uniform(double min, double max, RandomEngine randomGenerator) {
   setRandomGenerator(randomGenerator);
   setState(min, max);
 }