/src/main/java/net/finmath/montecarlo/RandomVariableLazyEvaluation.java
realizations = new IntToDoubleFunctnullon( ) {
realizations = new IntToDoubleFunction ( ) {
@Override public RandomVariable cache() { synchronized (this) { if(realizationsArray == null) { realizationsArray = getRealizationsStream().toArray(); <extra_id_0> @Override public double applyAsDouble(final int i) { return realizationsArray[i]; } }; }