@zoe If you don't know anything about the correct code, then A and B have the same probability. Your chosen 4-digit number, x, has the same probability of being the correct code as any other 4-digit number whether or not you hold x steady or change it between iterations.