Five digits guard the vault. You have at most 14 seconds per digit. The timer only starts when you press Start.
The vault is locked with a five-digit number code. You work it out one digit at a time: for the active digit you pick a number from 0 to 9, and the decoder only tells you whether it is right. It never says whether the number you are looking for is higher or lower.
You get 14 seconds per digit, and the clock only starts when you press Start. If the time runs out, the vault throws the code away and generates a new one. You have 25 attempts for all five digits together.
If you never try the same number twice, you need five to six attempts per digit on average. For five digits that adds up to about 27, which is more than the 25 you are allowed. So you need a little luck. Keep track of what you have already ruled out and do not waste an attempt on a number that was already wrong.
No, the code is random. The only thing that helps is being organised: go through the digits in the same order every time, and you will keep track even under time pressure.
Every guess counts as an attempt, including the right ones. If all 25 are gone before the code is open, it locks and you see what it would have been. "Try again" starts a new round with a new code.