A code of 4 characters is generated. The characters are taken from the set $\left\{0,1,2...9,A,B...F\right\}$. What is the probability that:
1.The code is made-up only by distinct letters. For this point I just that the probability is the product $\frac{6}{16}\cdot \frac{5}{16}\cdot \frac{4}{16}\cdot \frac{3}{16}$ as those are the probabilities that you have a letter in your code, and once you get one, you cannot choose it again. Is this an appropiate solution?
The tricky part comes at the second part of this problem. It asks me to calculate the probability that the code contains the number 2 at least once. I don't know how to approach this. Another point asks me to calculate the probability that the letter E appears exactly twice in the code. Would this probability be the product $\frac{1}{16}\cdot \frac{1}{16}\cdot \frac{15}{16}\cdot \frac{15}{16}$ ?
This isn't homework, I just have an upcoming probability exam and I want to see how these type of exercises are being solved. Could someone help me a bit with this?