public static double uniform(double a, double b)
  {
    if (!(a < b))
      throw new IllegalArgumentException("Invalid range");
    return a + uniform() * (b - a);
  }
public static double uniform(double a, double b)
  {
    if (!(a < b))
      throw new IllegalArgumentException("Invalid range");
    return a + uniform() * (b - a);
  }
public static double uniform ( double a , double b ) { if ( ! ( a < b ) ) throw new IllegalArgumentException ( "Invalid range" ) ; return a + uniform ( ) * ( b - a ) ; }
Returns a random real number uniformly in [a, b).

@param  a the left endpoint
@param  b the right endpoint
@return a random real number uniformly in [a, b)
@throws IllegalArgumentException unless <tt>a < b</tt>
Returns a random real number uniformly in [ a b ) .