Guess which password is generated this time? After pressing the corresponding switch correctly, the password will change randomly again.
When a switch is pressed, the Arduino UNO checks if the number corresponds to the preset password. If the correct password is entered, the corresponding number is displayed on the seven-segment display, and the LED can be used to indicate a successful unlock. After a correct entry, the password is randomly regenerated for the next attempt.
Project code and details here: