I’m struggling with the tests 7 and 9:
7. You should generate a random number between 1 and 5, inclusive, and assign it to the variable randomNumber.
9. The randomNumber should correspond to its fortune. For example, if randomNumber is 1, the selectedFortune should be equal to fortune1 and so on.
The code is working for all 5 numbers, there are no error messages when i run it - it just logs the corresponding string to the console.
For test 7, i have tried it with hard coded values and with variables, both don’t pass.
What am I doing wrong? Thanks for your help
```
const fortune1 = "The Lovers"
const fortune2 = "The Hermit"
const fortune3 = "The World"
const fortune4 = "The Chariot"
const fortune5 = "The Empress"
const max = 5
const min = 1
let randomNumber = Math.round(Math.random() * (max - min) + min)
let selectedFortune
if (randomNumber == 1) {selectedFortune = fortune1}
else if (randomNumber == 2) {selectedFortune = fortune2}
else if (randomNumber == 3) {selectedFortune = fortune3}
else if (randomNumber == 4){selectedFortune = fortune4}
else if (randomNumber == 5) {selectedFortune = fortune5}
console.log(selectedFortune)
```