#include #include #define TOP 6 #define TRIES 10000000 int v[TOP]; int my_random(int n); int try(); int main(int arch, char **argv) { int n; int res[2] = {0,0}; for (n=0; nRAND_MAX)) return(-1); aux= RAND_MAX - ( RAND_MAX % n + 1 ) % n; do value=rand(); while( value > aux); return(value%n); }