To generate a random integer between 5 and 9 inclusive (that is, including the values 5 and 9) with equal probability, in Excel, one would use:
a) =RAND()*(9-5)+5
b) =RANDBETWEEN(5,9)
c) =RANDINT(5,9)
d) =RANDOM(5,9)