Listing 4: Erzeugung von Lottozahlen struct RandomState state; ULONG i, zahl; IDOS->Printf("Lotto 6 aus 49:\n"); for(i=1; i<7; i++) { /* eine Zahl im Bereich von 1 bis 49 ermitteln */ zahl = (IUtility->Random(&state) % 48) + 1; IDOS->Printf("%ld. Zahl ist %2ld\n",i,zahl); } zahl = (IUtility->Random(&state) % 48) + 1; IDOS->Printf("Die Zusatzzahl lautet %2ld\n",zahl);