stimmt, ich depp
versuch es mal so:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/timeb.h>
int main(int argc, const char *argv[]) {
int i;
unsigned int ts;
struct _timeb timebuffer;
_ftime( &timebuffer );
memcpy(&ts, &timebuffer, sizeof(unsigned int));
srand( ts );
for(i=0; i <= 10; i++)
printf("%d\n", rand());
return 0;
}
\n\n
<!--EDIT|esskar|1125141632-->