Use the theoretical definition of probability:

1. Find the probability that the code consists of all odd digits if the same digit is not used more than once in the code.
The number of all possible outcomes is

The number of codes in which all digits are odd is

Then,

2. Find the probability that the code does not consist of all odd digits if the same digit is not used more than once in the code:

Answer: correct choice is D