changeset 74 | 829976007e62 |
parent 56 | 966ad681f25d |
child 77 | 49e0babccb23 |
73:d0578510aea1 | 74:829976007e62 |
---|---|
12 #include <time.h> |
12 #include <time.h> |
13 |
13 |
14 #define MAXDIRS 1000 |
14 #define MAXDIRS 1000 |
15 #define MAXFILES 1000 |
15 #define MAXFILES 1000 |
16 |
16 |
17 #define GETRANDOM(max) (1+(int)((float)max*rand()/RAND_MAX+1.0)) |
17 #define GETRANDOM(max) (1+(int)((float)(max)*rand()/RAND_MAX+1.0)) |
18 |
18 |
19 char *GetRandomNumberString () |
19 char *GetRandomNumberString () |
20 { |
20 { |
21 static char buffer[12]; |
21 static char buffer[12]; |
22 |
22 |