// Lotto Programm (Jetzt lerne ich Java, S. 199)
// sehr einfach, oft zu einfach !

import java.util.*;

class CLotto
{
public static void main (String [] args)
{
int zahl;
int anzahl;
Random gen = new Random ();
System.out.println("Ziehung der Lottozahlen !");

anzahl = 0;	// noch nichts gezogen

while (true)
  {
 // Zahlen zwischen 0 inkl. und 50 excl.
 zahl = gen.nextInt(50);
if (zahl == 0)
	continue;  	// 0 kommt im Lottoschein nicht vor
anzahl++;
System.out.println("Zahl Nr. " + anzahl + " = " + zahl);
 if (anzahl == 6)
     break;
  }
}
}
