@Jockelx sagte in Lottozahlen ohne Wiederholung: Hallo, typischer Algorithmus für Lottozahlen ziehen ist: Array a mit Zahlen 1 bis 49 for i=0 bis 5 { x = rand(49-i) result[i] = a[x]; swap(a[x], a[49-i]); // gezogene Zahl aus dem rand-Bereich raus nehmen }