code: @Pure
      public static double random(double minX, double maxX, boolean ascendent) throws MathException {
          return StochasticGenerator.generateRandomValue(new LinearStochasticLaw(minX, maxX, ascendent));
      }
docs: Replies a random value that respect
  the current stochastic law.
  
  @param minX is the lower bound of the distribution
  @param maxX is the upper bound of the distribution
  @param ascendent indicates of the distribution function is ascendent or not
  @return a value depending of the stochastic law parameters
  @throws MathException when error in the math definition.