vector.cc
changeset 74 829976007e62
parent 54 c064ce9f40f5
child 77 49e0babccb23
equal deleted inserted replaced
73:d0578510aea1 74:829976007e62
     5 #include <cstdio>
     5 #include <cstdio>
     6 #include <cstdlib>
     6 #include <cstdlib>
     7 #include <cmath>
     7 #include <cmath>
     8 #include <ctime>
     8 #include <ctime>
     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 #define MAX 6
    11 #define MAX 6
    12 
    12 
    13 static int refCounter = 0;
    13 static int refCounter = 0;
    14 
    14 
    15 namespace algebra {
    15 namespace algebra {