The code is at the top. You click the numbers to change them. They don't always change themselves.
This is very easy once you get it but I still think it's fun. I got this idea from the game CAN YOU ESCAPE when you do some of the codes.