/src/main/java/net/finmath/integration/MonteCarloIntegrator.java
final double lowerBound  = getLowerBound ( ) ; final double upperBound  = getUpperBound ( ) ;
} public MonteCarloIntegrator(final double lowerBound, final double upperBound, final int numberOfEvaluationPoints) { this(lowerBound, upperBound, numberOfEvaluationPoints, false); } @Override public double integrate(final DoubleUnaryOperator integrand) { <extra_id_0> final double range = upperBound-lowerBound; final RandomNumberGenerator1D mersenneTwister = new MersenneTwister(seed); final DoubleStream randomNumberSequence = DoubleStream.generate(mersenneTwister).limit(numberOfEvaluationPoints); return randomNumberSequence.map(x -> lowerBound + x * range).map(integrand).sum() * range / numberOfEvaluationPoints; } public int getNumberOfEvaluationPoints() {