Zufällige int-Zahl

int intMax;
int intRandom;
 
srand((unsigned int) time(0L)); // Sequenz initialisieren
intRandom = rand() % intMax;    // Ergebnis: 0 < intRandom < intMax

:!: Wichtiger Hinweis:

When compiling multithreaded applications,  the   _REENTRANT
flag  must be defined on the compile line.  This flag should
only be used in multithreaded applications.

EOF