diff --git a/src/gfn/marc/Lottozahlen.java b/src/gfn/marc/Lottozahlen.java index 6da52c6..74c2156 100644 --- a/src/gfn/marc/Lottozahlen.java +++ b/src/gfn/marc/Lottozahlen.java @@ -40,7 +40,7 @@ public class Lottozahlen { // Lottozahlen ziehen HashSet lottozahlenSet = new HashSet<>(6); - for (; lottozahlenSet.size() < 6;) { + while (lottozahlenSet.size() < 6) { lottozahlenSet.add((int) (Math.random() * 49) + 1); } ArrayList lottozahlen = new ArrayList<>(lottozahlenSet);