>>721
>int x, i, j;
>>>>time_t t;
>for(j = 1; j < 5; j++){
>>>>srand((unsigned int)time(&t));

としたら、どうなんだい?