changeset 74 | 829976007e62 |
parent 61 | 4b4c97f179da |
child 77 | 49e0babccb23 |
73:d0578510aea1 | 74:829976007e62 |
---|---|
5 |
5 |
6 #include <stdio.h> |
6 #include <stdio.h> |
7 #include <stdlib.h> |
7 #include <stdlib.h> |
8 #include <time.h> |
8 #include <time.h> |
9 |
9 |
10 #define GETRANDOM(max) (1+(int)((float)max*rand()/RAND_MAX+1.0)) |
10 #define GETRANDOM(max) (1+(int)((float)(max)*rand()/RAND_MAX+1.0)) |
11 |
11 |
12 struct T { |
12 struct T { |
13 int data; |
13 int data; |
14 struct T *next; |
14 struct T *next; |
15 }; |
15 }; |