create_random_tiles.c
// set tiles to pseudo-random values
set tiles to pseudo-random values
set tiles to pseudo - random values
void create_random_tiles(int tiles[N_TILES]) {
    int i = 0;
    srand(time(NULL));
    while (i < N_TILES) {
        tiles[i] = rand() % MAX_TILE + 1;
        i = i + 1;
    }
}
void create_random_tiles ( int tiles [ N_TILES ] ) { int i = 0 ; srand ( time ( NULL ) ) ; while ( i < N_TILES ) { tiles [ i ] = rand ( ) % MAX_TILE + 1 ; i = i + 1 ; } }
set tiles to pseudo-random values
set tiles to pseudo - random values