package javacodebook.core.random; import java.util.Random; import java.util.Arrays; public class Lotto { Random rand; int count=0; int max = 0; int []selected; /** * Erzeugt einen neuen Lottozahlen-Generator. */ public Lotto(int count, int max) { rand = new Random(); this.count = count; this.max = max; selected = new int[count]; } /** * Erzeugt neue Lotto-Zahlen */ public void next() { int index=0; int number = 0; boolean flag; while(index