My task is to generate 5000 random numbers between -2 and 5 
then count up how many of those values are between 2 and 3
This is what I have so far:

```
randNums=rand(1,5000); %Generate 5000 random values between 0 and 1

randNums=randNums*7-2; %Get those random values to be between -2 and 5

```

I understand that `7*1=7` and `0*7=0` so -2 from each = 7-2, but I do nut fully understand how to apply that again if the numbers were to be between 5,6 or -6 and 1.