Thread zufällige Zufallszahlen (5 answers)
Opened by J-jayz-Z at 2005-08-27 02:12

esskar
 2005-08-27 04:14
#11256 #11256
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
mit rand und srand bekommst du immer nur pseudo-numbers hin, aber versuch mal

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(int argc, const char *argv[]) {
int i;
srand( clock() );
for(i=0; i <= 10; i++)
printf("%d\n", rand());
return 0;
}

View full thread zufällige Zufallszahlen