Question 469719
The digits are 0 through 7, and can be repeated, so the number of possible codes is 8x8x8=512
----------------
The possibility of randomly finding the right code is 1/512.
The possibility of getting the wrong code is 511/512..