Code: Alles auswählen
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int main()
{
int i, j;
srand((unsigned)time(NULL));
while(1) {
i = 1+(int) (350*rand()/(RAND_MAX+1.0));
j = rand() % 350;
printf("%i\n", j);
}
return 0;
}
Ergebnisse bekomme. Kann das wer hier?