Probability is defined as the quotient between the number of desired events and the total number of events.-
In the given case, we have that the desired event is getting a number that is between 0 and 8 and the total number of events is the 9 possible numbers, therefore, the probability of getting one of the numbers is: