I have the following piece of code that calls a function to return the number of moves the player shall receive. This function accepts a char variable being T in this case.

```
    printf("Number Of Moves: %d\n\n", getRoll('T'));

```

This function then generates a random number between 1 and 10 which then goes through an if statement. My issue is that the if statement isn't working and I am not sure why. I have printed the random variable before the if statement and it is working correctly being a number between 1 and 10.

(I also realize there is currently only one case in my switch statement but there will be others.)

```
int getRoll(char letter) {

    int num = (rand() % 10) + 1;
    char plyr = letter;
    int numMoves;

    switch (plyr) {
        case 'T':
            printf("This is the random number: %d", num);// This is working
            if (1 <= num <= 5) {
                numMoves = 3;
            } else if (6 <= num <= 7) {
                numMoves = -6;
            } else if (8 <= num <= 10) {
                numMoves = 1;
            }
            break;
        }
    }

    return numMoves;
}

```