[code=java]...[/code]
angeben.Random zufall = new Random();
...
zahl = 1 + zufall.nextInt(9);
LinkedList<Double> list = new LinkedList<>();
Random random = new Random();
for (int i = 0; i < 10; i++) {
double m = 1 + 5 * random.nextGaussian();
list.add(m);
}
double mm = 0;
for (Double d : list) {
mm += d / 10;
}
System.out.println(mm);
System.out.println(list.stream().mapToDouble(d -> d).average().orElse(Double.NaN));
//...