Given that each number can be repeated, we use the following formula to find the number of possible codes.
Where n = 8 (the total number of digits) and m = 3 (the number of digits needed for a code).
(1) Therefore, there are 512 possible access codes.
In order to find the probability of randomly selecting the correct access code is 1/512 because there's just one correct code among 512 total.
(2) Therefore, the probability of randomly selecting the correct access code is 0.002.
At last, to find the probability of not selecting the correct code, we just have to find the complement probability, which consists in subtracting from 1.
(3) Therefore, the probability of not selecting the correct access code is 0.998.